Properly verify the expected field names when parsing extended JSON

XMLWordPrintableJSON

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

      A logic error in JsonReader causes it to not properly verify the expected field names for extended JSON documents which have unexpected field names. For example, the following JSON document should be rejected:

      { "$timestamp" : { "i" : 1, "t" : 1234 } }
      

      because the extended JSON spec requires that the 't' field precedes the 'i' field. But due to this bug the 'i' field will be treated as the 't' field, and vice versa.

      Expected result: JsonReader should throw a JsonParseException

            Assignee:
            Jeffrey Yemin
            Reporter:
            Jeffrey Yemin
            None
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: