Skip to content

JsonWriterOptions.IndentSize Property

Definition

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

IndentSize()

Defines the indentation size used by Utf8JsonWriter when Indented is enabled. Defaults to two.

public int IndentSize { get; set; }

Returns

int

Exceptions

Exception Description
ArgumentOutOfRangeException value is out of the allowed range.

Remarks

Allowed values are integers between 0 and 127, included.

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