Skip to content

JsonWriterOptions.IndentCharacter Property

Definition

Namespace: Corvus.Text.Json
Assembly: Corvus.Text.Json.dll
Source: JsonWriterOptions.cs

IndentCharacter()

Defines the indentation character used by Utf8JsonWriter when Indented is enabled. Defaults to the space character.

public char IndentCharacter { get; set; }

Returns

char

Exceptions

Exception Description
ArgumentOutOfRangeException value contains an invalid character.

Remarks

Allowed characters are space and horizontal tab.

Applies To

Product Versions
.NET 9, 10
.NET Standard 2.0, 2.1

Collaborate with us on GitHub

The source for this content can be found on GitHub, where you can also create and review issues and pull requests.

Open an issue