[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: |
|
||||||||
| 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 |
| 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. |