Class JsonCodecOptions

Assembly: redb.Route.dll

Strongly-typed view of the redbRoute:Codecs:Json configuration section.
Used by .

These knobs govern the generic JSON codec registered under
application/json in . They do NOT override
media-type-specific profiles registered separately (e.g. SCIM, Problem Details,
OAuth): such profiles own their own options and are not exposed to app config
by design.

public sealed class JsonCodecOptions

Inheritance

Object→JsonCodecOptions

Properties

IgnoreNullValues

When true, null property values are omitted during serialization.

public bool IgnoreNullValues { get; set; }

PropertyNameCaseInsensitive

When true, property name matching during deserialization is case-insensitive.

public bool PropertyNameCaseInsensitive { get; set; }

PropertyNamingPolicy

Property naming policy. Accepted values (case-insensitive):

public string? PropertyNamingPolicy { get; set; }

UnsafeRelaxedEscaping

When true (default), uses UnsafeRelaxedJsonEscaping so non-ASCII

public bool UnsafeRelaxedEscaping { get; set; }

WriteIndented

When true, output JSON is indented. Default: false.

public bool WriteIndented { get; set; }