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

Handle out-of-order keys in Extended JSON

    • Type: Icon: Improvement Improvement
    • Resolution: Duplicate
    • Priority: Icon: Minor - P4 Minor - P4
    • None
    • Affects Version/s: None
    • Component/s: JSON
    • None

      The Extended JSON specification requires that the $-prefixed keys can appear in any order, e.g.

      {b : {$binary : "AQID=", type : "02"}}
      {b : {$type : "02", $binary : "AQID="}}
      

      Currently JsonReader requires the keys to be in the specified order, so the second case above will be parsed as a normal document rather than as a BSON Binary.

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

              Created:
              Updated:
              Resolved: