[GODRIVER-630] EXT JSON Parser Empty Object Handling Created: 08/Nov/18  Updated: 28/Oct/23  Resolved: 15/Nov/18

Status: Closed
Project: Go Driver
Component/s: JSON & ExtJSON
Affects Version/s: None
Fix Version/s: 0.1.0

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

Issue Links:
Depends
is depended on by GODRIVER-437 Add helpers for database and client l... Closed

 Description   

The EXT JSON parser doesn't handle empty objects correctly. For the following JSON:

command: {
  cursor: {},
  command_name: "name"
}

the "command_name" key is parsed as part of the cursor object.



 Comments   
Comment by Githook User [ 15/Nov/18 ]

Author:

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

Message: Fix parsing of empty objects in EXT JSON

GODRIVER-630
Co-authored-by: Matthew Chiaravalloti <matthew.chiaravalloti@mongodb.com>
Co-authored-by: Divjot Arora <divjot.arora@mongodb.com>

Change-Id: I718d50c318e45734b8aba7c08cc841ab4dbb81a4
Branch: master
https://github.com/mongodb/mongo-go-driver/commit/684be531cb50ea48754478fd388cfd63a75ac078

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