[GODRIVER-314] Parse Extended JSON into BSON Created: 27/Mar/18 Updated: 02/May/22 Resolved: 02/May/22 |
|
| Status: | Closed |
| Project: | Go Driver |
| Component/s: | JSON & ExtJSON |
| Affects Version/s: | 0.0.2 |
| Fix Version/s: | None |
| Type: | New Feature | Priority: | Minor - P4 |
| Reporter: | adrien petel | Assignee: | Unassigned |
| Resolution: | Won't Do | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Epic Link: | Improve JSON & ExtJSON Implementation |
| Description |
|
It would be nice to allow the parsing of extended JSON in the new go driver. Something similar to the `bson.UnmarshalJSON()` function in the *mgo driver* for example, allow expression like this to be correctly parsed to BSON:
currently, we have to use `$oid` instead:
|
| Comments |
| Comment by Matt Dale [ 02/May/22 ] |
|
felix2626, now that the mongo shell Extended JSON format referenced here (see Extended JSON v1) is deprecated in favor of Extended JSON v2 and the mongo shell is deprecated in favor of mongosh, there are no longer any officially supported use cases for "Extended JSON v1". As a result, I'm closing this request as "Won't Do". Please feel free to open a new ticket with any further requests you have, thanks! |
| Comment by adrien petel [ 29/Mar/18 ] |
|
Hi Kris, It was just an example of extended JSON, my request is really about parsing all extended JSON expressions ! |
| Comment by Kristofer Brandow (Inactive) [ 27/Mar/18 ] |
|
Hi Adrien, Are you requesting that we support the format of ObjectId specifically or is that just an example of the type of extended JSON you would like supported? Thanks, |