java - Serialize objects like Google Gson but into compact binary format? -


i'm hoping there library allows serialization of java pojos, in similar manner google's excellent gson library.

however, need serialized format extremely compact (they need fit individual udp packets), , i'm concerned serializing json wasteful, , prefer binary format.

is there such thing?

some days ago found bson claims simple binary representation of json. did not try this, faq, not more compact json (small numbers use more space), easier (quicker) parse , produce. if have known data types transmit, other protocols more efficient (in terms of space, @ least) this.


Comments

Popular posts from this blog

javascript - Enclosure Memory Copies -

php - Replacing tags in braces, even nested tags, with regex -