3 ms·
It's worth noting that BSON is not equivalent to JSON. All BSON objects are documents. JSON objects can be documents, lists, strings, numbers, null, or booleans
by maxbond 3y ago
It's worth noting that BSON is not equivalent to JSON. All BSON objects are documents. JSON objects can be documents, lists, strings, numbers, null, or booleans. Eg, `null` is valid JSON, as is `"foo"`, but neither can be expressed in BSON.
So if your criterion is 1:1 compatibility with JSON, BSON doesn't get you there. (BSON is awesome, though.)