title: Reducing size of data stored with JSON
body: <p>I have data that I convert to JSON. I need storage to be very optimized but when I look at the JSON string there is a lot of wasted space. For example my single true of false gets converted to:</p>
  
  <pre><code>"testField":false
  </code></pre>
  
  <p>It might seem not much but I have a lot of data and it's a big problem when one byte of a true or false gets converted to something 15 times larger. </p>
  
  <p>Is there anything I could do to stop this huge waste of space and to optimize the way data is stored. Note that I don't really need it to be JSON. All I need is to take the data stored in a class and have it converted to a string that I can convert back later. </p>