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

JsonWriter produces invalid output for Longs under JsonMode.STRICT

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 3.0.0
    • Affects Version/s: None
    • Component/s: JSON

      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.

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

              Created:
              Updated:
              Resolved: