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

JSON.parse() should handle $timestamp correctly

    • Type: Icon: Improvement Improvement
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 2.11.0
    • Affects Version/s: 2.10.1
    • Component/s: None
    • Labels:
      None

      When trying to parse a JSON string containing Mongo Extended JSON like: http://www.mongodb.org/display/DOCS/Mongo+Extended+JSON
      The JSON.parse utility function doesn't know about this type. Underlying problem is in the JSONCallback.java file which has a if else for a lot of extensions but not the $timestamp.
      example:
      JSON.parse(("{ \"$timestamp\" :

      { \"$t\": 123, \"$i\": 456 }

      }"))

            Assignee:
            jeff.yemin@mongodb.com Jeffrey Yemin
            Reporter:
            sjoerd@persuasionapi.com Sjoerd Mulder
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: