Dested
Dested

Reputation: 6433

Json compression for transfer

I was wondering what the current state of javascript based json compression is. Are there any libraries currently available that allow compressing json, either by replacing long names with single characters, or some other method?

Upvotes: 3

Views: 952

Answers (1)

Edd Morgan
Edd Morgan

Reputation: 2923

Someone has implemented HPack in Javascript, which could really improve JSON data set sizes, assuming your data set is homogeneous.

Since your emphasis is on transfer, rather than storage, don't forget to use things like gzip and to minimise your JSON. Those should be the first steps before adding yet more compression overhead.

Upvotes: 2

Related Questions