3 ms·
I would also recommend CBOR (http://cbor.io/); http://cbor.io/); one can think of it like a binary form of JSON. It has a few advantages: * datetime objects
by deathanatos 8y ago
I would also recommend CBOR (http://cbor.io/); http://cbor.io/); one can think of it like a binary form of JSON. It has a few advantages:
* datetime objects
* binary blobs
It is very similar to MsgPack in nature. However, MsgPack, in particular on Python, poorly handles the text/bytes separation, and CBOR is backed by RFC.
- skolemtotem 8y agoBSON is another format that's "binary JSON with blobs and datetimes". It's notably used a lot in MongoDB, but I'm not sure how these three formats compare.
- camgunz 8y agoCBOR is MessagePack. At least cbor-ruby started with the MessagePack sources. The story is that Carsten took MessagePack, wrote a standard and added some things he wanted, and called it something else. I wrote [1] a pretty comprehensive (and admittedly biased) critique of the CBOR standard last year. [1] https://news.ycombinator.com/item?id=14072598 https://news.ycombinator.com/item?id=14072598 Disclaimer: I wrote and maintain a MessagePack implementation.