[GODRIVER-612] Remove duplicated Extended JSON logic from "bsoncore" Created: 25/Oct/18  Updated: 08/Jan/24

Status: Backlog
Project: Go Driver
Component/s: BSON
Affects Version/s: None
Fix Version/s: 2.0.0

Type: Improvement Priority: Major - P3
Reporter: Kristofer Brandow (Inactive) Assignee: Unassigned
Resolution: Unresolved Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
depends on GODRIVER-2618 Create an "extjson" package for the E... Closed
Epic Link: Go Driver 2.0 BSON
Quarter: FY24Q3
Backwards Compatibility: Major Change

 Description   

Currently the extended JSON writer is directly encoded into the ValueWriter for extended JSON. This means that the ValueWriter API must be used to write extended JSON and that any packages that bsonrw depends on cannot write extended JSON. Since the bsonrw package depends on the bsoncore package this means the bsoncore has to have it's own implementation of this generic logic. Separate this common logic into it's own (potentially internal) package.

Specific targets:

  • bson.RawElement.String and bsoncore.Element.String have totally different Extended JSON marshaling logic.

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