title: How to compress/minimize size of JSON/Jsonify with Flask in Python?
body: <p>I'm sending a huge JSON string (with jsonify in Flask) to my webpage pretty often, so I would like to reduce the data. The easiest option is probably to remove all line breaks and space characters, but just to give you an example of this:  </p>
  
  <p>Normal jsonify: 361KB<br>
  Removing all line breaks and space characters: 118KB (wow).<br>
  Zip the original file: 35KB (double wow).  </p>
  
  <p>So I basically wonder if there is an easy way to come close to the 35KB. I couldn't find  a solution so far which I could easily implement in python and javascript (to decompress).  </p>
  
  <p>Right now, I send around 4-5MB of data every second, which is - you guessed right - a "little bit" too much.</p>