NumberLong is not properly round tripped by the JSON serializer / deserializer

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Done
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: API
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      the JSON serializer (used in most outputs) writes Number / NumberInt / NumberLong as just a regular number.
      The JSON deserializer tries to be smart and either uses a Number or a NumberInt based on how large it is.
      The behavior should be equivalent to the shell or mongoexport / import.
      At the minimum it should encode NumberLong as

      { $long: N }

      so that it can be round tripped.

              Assignee:
              Unassigned
              Reporter:
              Antoine Girbal (Inactive)
              None
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: