You can use the AsBSON method to get the BSON representation of JSON data that is stored in another storage format, such as text or UBJSON.
If the input JSON data is already stored as BSON, this method merely returns the data passed into it.
You can use the AsBSON method to get the BSON representation of JSON data that is stored in another storage format, such as text or UBJSON.
If the input JSON data is already stored as BSON, this method merely returns the data passed into it.