Table of Contents

Constructor NatsJsonSerializer

Namespace
NATS.Client.Serializers.Json
Assembly
NATS.Client.Serializers.Json.dll

NatsJsonSerializer()

Reflection-based JSON serializer for NATS.

public NatsJsonSerializer()

Remarks

This serializer is not suitable for native AOT deployments since it might rely on reflection

NatsJsonSerializer(JsonSerializerOptions)

Creates a new instance of NatsJsonSerializer<T> with the specified options.

public NatsJsonSerializer(JsonSerializerOptions opts)

Parameters

opts JsonSerializerOptions

Serialization options

NatsJsonSerializer(JsonSerializerOptions, JsonWriterOptions)

Creates a new instance of NatsJsonSerializer<T> with the specified options and writer options.

public NatsJsonSerializer(JsonSerializerOptions opts, JsonWriterOptions writerOpts)

Parameters

opts JsonSerializerOptions

Serialization options

writerOpts JsonWriterOptions

Writer options