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

Extended JSON syntax should support all BSON types

    • Type: Icon: Improvement Improvement
    • Resolution: Done
    • Priority: Icon: Minor - P4 Minor - P4
    • None
    • Affects Version/s: None
    • Component/s: Internal Code, Tools
    • None

      It's not clear exactly what Extended JSON syntax is meant to be used for, but if anyone is trying to use it for backup or archiving purposes, they might reasonably care about preserving numeric type information (e.g., float/int32/int64 distinction), as well as any other BSON type we choose to introduce.

      If we were to do this, I guess mongoexport should have a flag for whether to represent integers in JSON syntax (lossy, but backward compatible and better for interoperability with other JSON tools), or in Extended JSON syntax.

      I suppose the same consideration would apply to the symbol type, though probably nobody uses that.

            Assignee:
            geert.bosch@mongodb.com Geert Bosch
            Reporter:
            richard.kreuter Richard Kreuter (Inactive)
            Votes:
            2 Vote for this issue
            Watchers:
            13 Start watching this issue

              Created:
              Updated:
              Resolved: