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:
"testField":false
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.
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.
I suppose you could change testField into an integer and set it to “0”.
That would be smaller than “false”.