Table of Contents

Enum JsonOutputMode

Namespace
MongoDB.Bson.IO
Assembly
MongoDB.Bson.dll

Represents the output mode of a JsonWriter.

public enum JsonOutputMode
Extension Methods

Fields

[Obsolete("Use CanonicalExtendedJson instead.")] Strict = 0

Output strict JSON (an obsolete output mode that is similar to canonical extended JSON).

Shell = 1

Use a format that can be pasted in to the MongoDB shell.

CanonicalExtendedJson = 2

Output canonical extended JSON.

RelaxedExtendedJson = 3

Output relaxed extended JSON.

[Obsolete("Use Shell instead.")] JavaScript = 1

Use JavaScript data types for some values.

[Obsolete("Use Shell instead.")] TenGen = 1

Use JavaScript and MongoDB data types for some values.