allanbank / mongodb-async-driver

The MongoDB Asynchronous Java Driver.
Apache License 2.0
22 stars 15 forks source link

The BSON --> JSON conversion should support strict mode. #12

Closed allanbank closed 9 years ago

allanbank commented 9 years ago

Currently we produce a mix of strict (for regular expressions) and shell mode.

We should also support a mode where only strict syntax is generated and test it round trips correctly.

See: http://docs.mongodb.org/manual/reference/mongodb-extended-json/#bson-data-types-and-associated-representations

youseeus commented 9 years ago

Json.serialize() should output valid Json "Strings are delimited with double-quotation marks" (Wikipedia)