[GODRIVER-775] Cannot parse MongoDB Extended JSON from mongoexport Created: 17/Jan/19  Updated: 28/Oct/23  Resolved: 13/Feb/19

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

Type: New Feature Priority: Major - P3
Reporter: David Golub Assignee: Kristofer Brandow (Inactive)
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

Exporting a field with BinData using mongoexport generates a JSON file of the form:

{"data":{"$binary":"AAAA","$type":"00"}}

The Go driver is currently incapable of parsing this JSON.



 Comments   
Comment by Githook User [ 13/Feb/19 ]

Author:

{'name': 'Kris Brandow', 'email': 'kris@mongodb.com', 'username': 'skriptble'}

Message: Merge branch 'pr/133'

GODRIVER-775

Change-Id: I190dd81087fde60c221c352d908409d2e196a80a
Branch: master
https://github.com/mongodb/mongo-go-driver/commit/233bb4b459b97936c4414892bc33031101d560d5

Comment by Jeffrey Yemin [ 17/Jan/19 ]

I'm not surprised.  The extended JSON specification for binary is:

{"$binary": {"base64": "AAAA", "subType": "00"}}

The driver will probably have to be capable of at least parsing the older formats generated from mongoexport. 

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