Uploaded image for project: 'Java Driver'
  1. Java Driver
  2. JAVA-832

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

    • Type: Icon: Improvement Improvement
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: API
    • 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 Unassigned
            Reporter:
            antoine Antoine Girbal
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: