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

Shell support for Extended JSON

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Won't Do
    • Icon: Minor - P4 Minor - P4
    • None
    • None
    • Shell
    • None

    Description

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

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: