BSON? (Binary JSON)

12 views
Skip to first unread message

Andrew Rondeau

unread,
Nov 25, 2010, 1:28:02 AM11/25/10
to salmon-protocol
Just wondering: Has anyone thought of using magic signatures with
BSON? (Binary JSON) http://bsonspec.org/

The reason why I ask is that there's a lot of complexity in the Magic
Signatures specification with regard to which string encodings are
used, how Base64 is used, ect. The advantages of human-readable XML or
JSON are lost in Magic Signatures because the payload is obscured in
the Base64 string.

In contrast, with BSON you start with bytes instead of text. It even
supports embedding raw bytes within a BSON document, thus doing
something like Magic Signatures in BSON is simplified because there
aren't issues like which encoding to use, and dropping trailing ===
from Base64-encoded strings.

There are BSON libraries for C, C++, C#, PHP, Python, and Java.
Reply all
Reply to author
Forward
0 new messages