I've developed a library for my project and I just published it to npm: https://www.npmjs.com/package/api-data-compressor
The key technical feature is that it will scans the data structure and converts all objects into arrays (remove the property names to save space).
In my projects, this approach gave a compression rate of about 50% for large datasets :)