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

Ensure extended shell JSON ouput format round trips through the shell

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Trivial - P5
    • Resolution: Unresolved
    • Affects Version/s: 2.5.5
    • Fix Version/s: Backlog
    • Component/s: JavaScript, Shell
    • Labels:
      None

      Description

      Not all BSON types are representable in unmodified JSON, which is why we have:

      http://docs.mongodb.org/manual/reference/mongodb-extended-json/

      Note the two types, "strict", which is RFC compliant JSON, and "shell", which in theory is parseable by the shell. "strict" is output almost everywhere, except for "bsondump", which outputs "shell" mode BSON.

      The "shell" mode seems to be parseable by the shell, but at least one BSON type, "date", gets output as "Date", when "ISODate" or "new Date" is how the shell represents the actual BSON date type. This is an example of one place where the types do not correctly round trip, but there may be more.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              backlog-server-platform DO NOT USE - Backlog - Platform Team
              Reporter:
              sverch Shaun Verch
              Participants:
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

                Dates

                Created:
                Updated: