[GODRIVER-1504] Unmarshaling attempts to parse top-level keys as extended JSON Created: 01/Mar/20  Updated: 28/Oct/23  Resolved: 20/Mar/20

Status: Closed
Project: Go Driver
Component/s: JSON & ExtJSON
Affects Version/s: 1.3.0
Fix Version/s: 1.3.2

Type: Bug Priority: Major - P3
Reporter: David Golden Assignee: Divjot Arora (Inactive)
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

A top level document like the following is interpreted as extended JSON (and errors):

{"$undefined":true} 

It should not be treated as Extended JSON per the spec and should not error.



 Comments   
Comment by Githook User [ 20/Mar/20 ]

Author:

{'name': 'Divjot Arora', 'username': 'divjotarora', 'email': 'divjot.arora@10gen.com'}

Message: GODRIVER-1504 Restrict top-level keys from being parsed as extjson (#340)
Branch: release/1.3
https://github.com/mongodb/mongo-go-driver/commit/2bab134a321944190637461dfeff7b8c83e1cd63

Comment by Githook User [ 20/Mar/20 ]

Author:

{'name': 'Divjot Arora', 'username': 'divjotarora', 'email': 'divjot.arora@10gen.com'}

Message: GODRIVER-1504 Restrict top-level keys from being parsed as extjson (#340)
Branch: master
https://github.com/mongodb/mongo-go-driver/commit/216a91380d2ff808731ad6c8db7221d2a71310df

Comment by Divjot Arora (Inactive) [ 19/Mar/20 ]

https://github.com/mongodb/mongo-go-driver/pull/340

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