Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

What's the difference between this and BSON, another binary based JSON implementation?


The main differences are:

1. MessagePack includes less data types. Several of the BSON-only data types are specific to MongoDB, but others - such as separate types for binary data and UTF-8 text - are IMO quite useful.

2. MessagePack includes several optimizations in the "type byte" to efficiently represent small values.

A while back I designed my own serialization format that combined features from both, but I never finished an implementation.


do you have a specification or even some prototype on github? would be interesting to see


I dug the spec I wrote off my backup hard disk and posted it here: https://gist.github.com/2907123

I also planned to define a standard set of tags for the "tagged value" type, but never quite got around to that.


BSON is really only used by MongoDB.




Consider applying for YC's Fall 2026 batch! Applications are open till July 27.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: