Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-6813

Shell support for Extended JSON

    • Type: Icon: Improvement Improvement
    • Resolution: Won't Do
    • Priority: Icon: Minor - P4 Minor - P4
    • None
    • Affects Version/s: None
    • Component/s: Shell
    • None

      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.)

            Assignee:
            backlog-server-platform DO NOT USE - Backlog - Platform Team
            Reporter:
            richard.kreuter Richard Kreuter (Inactive)
            Votes:
            8 Vote for this issue
            Watchers:
            12 Start watching this issue

              Created:
              Updated:
              Resolved: