Method SerializeEJson
SerializeEJson<TInput, TOutput>(TInput, SerializeEJsonOptions<TOutput>)
Serializes BSON values to their Extended JSON v2 representation using the $serializeEJSON aggregation operator.
public static TOutput SerializeEJson<TInput, TOutput>(TInput value, SerializeEJsonOptions<TOutput> options = null)
Parameters
valueTInputThe value to serialize.
optionsSerializeEJsonOptions<TOutput>The serialization options.
Returns
- TOutput
The serialized value.
Type Parameters
TInputThe type of the input value.
TOutputThe type of the output value.