Skip to main content

canonical_extjson

Function canonical_extjson 

Source
pub fn canonical_extjson(
    value: RawBsonRef<'_>,
) -> Result<String, ConnectorError>
Expand description

Canonical Extended JSON v2 text for one BSON value. Canonical form keeps every BSON type distinct (Int32 versus Int64, ObjectId versus string, Decimal128, dates).

ยงErrors

Returns an error when the raw value is malformed.