-
Type: Improvement
-
Resolution: Won't Do
-
Priority: Minor - P4
-
None
-
Affects Version/s: None
-
Component/s: Shell
-
None
-
(copied to CRM)
AFAICT, the shell has never supported Extended JSON syntax. Example:
> db.foo.insert({ "_id" : { "$oid" : "5033c7decf61e919ab517ea4" } }) Tue Aug 21 14:09:22 uncaught exception: field names cannot start with $ [$oid]
This is of low importance, but would arguably be convenient for cutting and pasting from mongoexport output, for example.
For extra credit, the shell might have a mode in which it printed BSON objects in Extended JSON.
(As a design note, in order for this to work over time, it'd be important to ensure that the set of field names used for Extended JSON, queries, updates, etc. never collide, or else bad badness would ensue.)
- is duplicated by
-
SERVER-20129 $oid does not work with $ne
- Closed
- is related to
-
SERVER-5675 mongoimport should support all (extended) json formats
- Closed
-
SERVER-13209 Ensure extended shell JSON ouput format round trips through the shell
- Closed
- related to
-
MONGOSH-1849 Support strict date format
- Closed
-
SERVER-16618 Log file should print extended json compliant syntax
- Backlog