Compress your JSON to send and get a lot of data to/from server
JSON compressor-decompressor is a library to compress big JSON data.
This library should be used only when the improvement of compression is important is awful if you try to compress small json objects.
The rate compression could variate from 7.5% to 32.81% depending of the type and values of data.
Use lz-string library to compress more https://github.com/pieroxy/lz-string/
Original - 17331 bytes Compressed using JSONC - 16025 bytes Compression rate - 7.5% Original compressed using lz-string - 3822 bytes Compressed using JSONC using lz-string - 3689 bytes Compression rate - 3.4% Compression rate from original to compressed using JSONC and lz-string - 78.71%
Original - 19031 bytes Compressed using JSONC - 12787 bytes Compression rate - 32.81% Original compressed using lz-string - 3900 bytes Compressed using JSONC using lz-string - 3113 bytes Compression rate - 20.18% Compression rate from original to compressed using JSONC and lz-string - 83.64%