Alex Rivera | Logout

Compressed Json Javascript

Asked 2012-07-13T15:23:55.113
28

Currently I send JSON from an Ajax post to the server which is then converted to objects using the Jackson Mapper.

The format is like this

{"id":"780710","folderID":"42024","displayOrder":2},{"id":"780724","folderID":"42024","displayOrder":3}

What is the best JavaScript library to compress this data and will the Jackson mapper be able to handle the new format?

Edit
Report

1 Answer

15

As said by @JamWaffles, this is the best JSON is able to do concerning compression. And in your case (the line of code you delivered), compressing further may be overkill.

But if you have larger responses, and you want to save those bytes, have a look at

or

They are not JSON, but they serialize data to a smaller format (in most cases).

answered 2012-07-13T15:50:34.753

Your Answer