Property Indented
Indented
Gets or sets a value indicating whether the JSON output should be
formatted.
Declaration
public bool Indented { get; set; }
Property Value
Type | Description |
---|---|
Boolean |
true to format JSON output, false to write without
any extra white space. The default is false .
|
Remarks
Formatting includes indenting nested JSON tokens, adding new
lines, and adding white space between property names and values.
This option does not apply to
SerializeAsJson(Utf8JsonWriter, JsonOutputOptions) (instead use
JsonWriterOptions when creating
Utf8JsonWriter).