[CXX-2096] BSON UDL for from_json Created: 21/Aug/20  Updated: 24/Sep/20  Resolved: 24/Sep/20

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

Type: Improvement Priority: Minor - P4
Reporter: Clyde Bazile III (Inactive) Assignee: Raymund Rodriguez
Resolution: Done Votes: 0
Labels: internal-woes
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Epic Link: CXX-2082

 Description   

Instead of forcing users to call bson::from_json like so:
auto doc = bson::from_json("[1,2,3]")

We could provide a UDL, i.e.,:
auto doc = "[1,2,3]"_bson



 Comments   
Comment by Githook User [ 24/Sep/20 ]

Author:

{'name': 'rayangler', 'email': 'rayangler@users.noreply.github.com', 'username': 'rayangler'}

Message: CXX-2096 Add BSON UDL for from_json() (#724)
Branch: master
https://github.com/mongodb/mongo-cxx-driver/commit/1226cf3b365fb3659bd83d1afa344a9c966d86f7

Generated at Wed Feb 07 22:04:52 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.