Skip to main content

SerializationCtx Class

NuGet: GHIElectronics.TinyCLR.Data.Json
Assembly: GHIElectronics.TinyCLR.Data.Json
Namespace: GHIElectronics.TinyCLR.Data.Json

Holds the formatting options and indentation state for one serialization pass.

public class SerializationCtx

Constructors

SerializationCtx(JsonSerializationOptions options)

public SerializationCtx(JsonSerializationOptions options)

Initializes a new serialization context with the given options.

Fields

options

public readonly JsonSerializationOptions options

The formatting options in effect for this serialization pass.

IndentLevel

public int IndentLevel

The current indentation nesting level.