Table of Contents

Method SerializeEJson

Namespace
MongoDB.Driver
Assembly
MongoDB.Driver.dll

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

value TInput

The value to serialize.

options SerializeEJsonOptions<TOutput>

The serialization options.

Returns

TOutput

The serialized value.

Type Parameters

TInput

The type of the input value.

TOutput

The type of the output value.