[GODRIVER-328] Combine the extjson and bson packages Created: 03/Apr/18  Updated: 28/Oct/23  Resolved: 23/May/18

Status: Closed
Project: Go Driver
Component/s: JSON & ExtJSON
Affects Version/s: 0.0.2
Fix Version/s: None

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

Issue Links:
Related
is related to GODRIVER-309 Fix excessive escaping when printing ... Closed

 Description   

By merging these packages we will only add 3 functions to the BSON package. We gain the ability to stringify BSON objects to extended JSON which is easier to read than the format we currently use. We can also consolidate the types we use, eventually remove the dependency on the parser, ast, and builder packages. We will also be able to add extended JSON parsing to the decoders and add an extended JSON encoder.



 Comments   
Comment by Githook User [ 23/May/18 ]

Author:

{'username': 'tychoish', 'name': 'Sam Kleinman', 'email': 'sam@10gen.com'}

Message: GODRIVER-328: move extjson into bson package, use Document rather than builders

Change-Id: I826beae5b0af7b109138483498dbbc7463f66ea3
Branch: master
https://github.com/mongodb/mongo-go-driver/commit/2bc72ab2a7bf23f6f53554e9cf48b061943d664e

Comment by Sam Kleinman (Inactive) [ 20/May/18 ]

kris.brandow, do you think we should change the name of these three functions:

  • ParseArrayToBuilder
  • ParseObjectToBuilder
  • BsonToExtJSON

I think the last one makes a lot of sense to modify given the new package name. I'd also think that putting ExtJSON in the names of the other functions would be good, but I'm not sure if you have any patterns that you'd like to adhere to?

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