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

Handle out-of-order keys in Extended JSON

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Duplicate
    • Icon: Minor - P4 Minor - P4
    • None
    • None
    • JSON
    • None

    Description

      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.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: