[GODRIVER-289] Extended JSON parser expects $binary value to be of object type Created: 20/Mar/18  Updated: 27/Oct/23  Resolved: 21/Mar/18

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

Type: Bug Priority: Major - P3
Reporter: Thomas Delacour (Inactive) Assignee: David Golden
Resolution: Works as Designed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
is related to DOCS-11478 Updated Extended JSON docs to address v2 Closed

 Description   

The extended JSON parser parses binary data expecting an object, while the mongodb documentation indicates that this should be a string. My personal experience also matches what is listed in the documentation.



 Comments   
Comment by Thomas Delacour (Inactive) [ 21/Mar/18 ]

Ah I see. Thank you!

Comment by David Golden [ 21/Mar/18 ]

I've opened DOCS-11478 to get the manual updated.

Comment by David Golden [ 21/Mar/18 ]

Hi, Thomas. The Go driver implements "Extended JSON v2", which changes the format for binary data.

Some, but not all drivers, support v2. The mongoimport and mongoexport tools don't yet support v2, but will when they are converted to use the new Go driver. As a result, the MongoDB manual still lists the old formats.

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