JSON.parse() should handle $binary object correctly

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Done
    • Priority: Major - P3
    • 2.11.0
    • Affects Version/s: 2.10.1
    • Component/s: API
    • None
    • None
    • Fully Compatible
    • None
    • None
    • None
    • None
    • None
    • 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 $binary.

      example:
      JSON.parse(("

      { \"$binary\" : \"YWJjZA==\", \"$type\" : 0 }

      "))

              Assignee:
              Jeffrey Yemin
              Reporter:
              Sjoerd Mulder
              None
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: