1

How to compress json array list in java(Spring mvc) and decompress it in javascript(angular js) ? Have tried to gzip json by adding a filter in java but json data size is still the same in response.

6
  • Would this QnA help? [stackoverflow.com/questions/20676831/… [1]: stackoverflow.com/questions/20676831/… Commented Jun 13, 2015 at 13:54
  • Can you show us what you have tried? (Also, this smells of premature optimization. Do you actually NEED to compress the String?) Commented Jun 13, 2015 at 13:55
  • Isn't your server already serving gzipped responses? Commented Jun 13, 2015 at 13:56
  • 1
    In Tomcat server have enabled gzip compression its working for js,html,css files but application/json responses are not compressed Commented Jun 13, 2015 at 14:05
  • I remember, a long time ago, something called hpack and jsonpack. It was available in a number of languages. Commented Jun 13, 2015 at 14:28

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.