[CDRIVER-4659] Add extended json output capability for bson_array_as_json Created: 13/Jun/23  Updated: 28/Oct/23  Resolved: 15/Jun/23

Status: Closed
Project: C Driver
Component/s: None
Affects Version/s: None
Fix Version/s: 1.24.0

Type: Improvement Priority: Major - P3
Reporter: Josh Siegel (Inactive) Assignee: Josh Siegel (Inactive)
Resolution: Fixed Votes: 0
Labels: neweng
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
is depended on by CXX-1712 Overload bsoncxx::to_json to accept a... Closed
Epic Link: CXX usability improvements
Quarter: FY24Q3

 Description   

Currently, we allow users to convert their bson to json in three different ways (legacy, relaxed, canonical) using the corresponding bson_to_json functions. However, there is no capability to do so with a bson array.

https://stackoverflow.com/questions/53016213/converting-a-bson-document-containing-an-array-to-json-removes-the-array-from-t

This ticket will add the functions needed to allow bson_array_as_json to output all three types of json.



 Comments   
Comment by Githook User [ 15/Jun/23 ]

Author:

{'name': 'Joshua Siegel', 'email': '39130209+joshbsiegel@users.noreply.github.com', 'username': 'joshbsiegel'}

Message: CDRIVER-4659 add extended json output capability for `bson_array_as_json` (#1305)
Branch: master
https://github.com/mongodb/mongo-c-driver/commit/a41683b76fce42f841318d5bb8d926154f9438c8

Generated at Wed Feb 07 21:21:33 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.