-
Type:
Investigation
-
Resolution: Unresolved
-
Priority:
Major - P3
-
None
-
Affects Version/s: None
-
Component/s: None
-
None
-
None
-
Developer Tools
Original Downstream Change Summary
Users can convert JSON strings to BSON via $convert or the shorthand expressions $toObject and $toArray. See WRITING-31886 for more details.
Description of Linked Ticket
Currently, users rely on the $function expression and JSON.parse to convert a string value to a JSON object. For example, this may be required for some legacy apps with documents where a JSON was stored as a string and the user wants to update such documents and store the values as JSON objects.
The new API can be an extension to the existing $convert expression, or a new expression.
- depends on
-
SERVER-105087 Allow native conversion from string to BSON object
-
- Closed
-