Search code examples
jsonbson

What are some of the common steps for reducing JSON data size?


I am running into problems where some of our data stores are seeing a lot of throughput. We are using POJOs serialized to JSON using Jackson. What are some of the ways we can compress JSON data?

One initial thought suggested using BSON but apparently its not much smaller than JSON.


Solution

  • If you're not wedded to JSON you could try MessagePack:

    MessagePack is a binary-based efficient object serialization library. It enables to exchange structured objects between many languages like JSON. But unlike JSON, it is very fast and small.

    There are implementations in many languages.