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

JsonWriter produces invalid output for Longs under JsonMode.STRICT

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • 3.0.0
    • None
    • JSON

    Description

      The number should be quoted correctly:

      Currently:

      { "$numberLong" : <number>  } }

      Should be:

      { "$numberLong" : "<number>"  } }";

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

      This is causing the json to be incorrectly round tripped.

      Attachments

        Activity

          People

            robert.guo@mongodb.com Robert Guo (Inactive)
            robert.guo@mongodb.com Robert Guo (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: