[JAVA-2475] Handle out-of-order keys in Extended JSON Created: 22/Mar/17  Updated: 28/Jun/17  Resolved: 28/Jun/17

Status: Closed
Project: Java Driver
Component/s: JSON
Affects Version/s: None
Fix Version/s: None

Type: Improvement Priority: Minor - P4
Reporter: Jeffrey Yemin Assignee: Jeffrey Yemin
Resolution: Duplicate Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Duplicate
duplicates JAVA-2447 Implement Extended JSON specification Closed

 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.



 Comments   
Comment by Jeffrey Yemin [ 28/Jun/17 ]

Closing as duplicate of JAVA-2447

Generated at Thu Feb 08 08:57:19 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.