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

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

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • None
    • None
    • API
    • None

    Description

      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.

      Attachments

        Activity

          People

            Unassigned Unassigned
            antoine Antoine Girbal
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: