Path: redb-route/redb.Route/Configuration/JsonCodecOptions.cs Snapshot: redb-route, development snapshot 2026-12-06. This is the development state of the public mirrors; it may differ from the published packages. License: Apache-2.0. Repository: https://github.com/redbase-app/redb-route Page: https://redbase.app/src/dev-2026-12-06/redb-route/redb.Route/Configuration/JsonCodecOptions.cs ---- using redb.Route.Abstractions; namespace redb.Route.Configuration; /// /// 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 { /// /// Property naming policy. Accepted values (case-insensitive): /// null/"None" (verbatim), "CamelCase", "SnakeCaseLower", /// "SnakeCaseUpper", "KebabCaseLower", "KebabCaseUpper". /// Default: "CamelCase". /// public string? PropertyNamingPolicy { get; set; } = "CamelCase"; /// /// When true, null property values are omitted during serialization. /// Default: true. /// public bool IgnoreNullValues { get; set; } = true; /// /// When true, property name matching during deserialization is case-insensitive. /// Default: true. /// public bool PropertyNameCaseInsensitive { get; set; } = true; /// /// When true, output JSON is indented. Default: false. /// public bool WriteIndented { get; set; } /// /// When true (default), uses UnsafeRelaxedJsonEscaping so non-ASCII /// bytes (Cyrillic, emoji, etc.) and ASCII quotes are emitted as UTF-8 literals /// per RFC 8259 §8.1. Only flip to false if the output is embedded into /// HTML/JS inline — which is not a Route-message scenario. /// public bool UnsafeRelaxedEscaping { get; set; } = true; }