title: JSON - Optimization
body: <p>I am working on a web portal where In my scenario there are big size JSON strings (1MB) which are sent by the server. We are using the WebSocket protocol. Obviously, it's taking a long time to load on client's browser. </p>
  
  <p>I have tried Gzipping the JSON at the server end and try to decompress using Javascript. Compression is fine but I get some error while decompressing using JS. I used this library <a href="http://jsxgraph.uni-bayreuth.de/wp/2009/09/29/jsxcompressor-zlib-compressed-javascript-code/" rel="nofollow noreferrer">http://jsxgraph.uni-bayreuth.de/wp/2009/09/29/jsxcompressor-zlib-compressed-javascript-code/</a> </p>
  
  <p>Could anyone please suggest if there is another way? </p>
  
  <p>P.S. As I am using WebSocket so I can't rely on browser's decompression.  </p>