JsonWriterOptions.Indented 属性

定义

获取或设置一个值,该值指示是否 Utf8JsonWriter 应设置 JSON 输出的格式,包括缩进嵌套 JSON 令牌、添加新行,以及添加属性名称和值之间的空白。

public:
 property bool Indented { bool get(); void set(bool value); };
public bool Indented { get; set; }
member this.Indented : bool with get, set
Public Property Indented As Boolean

属性值

true 如果 JSON 输出已格式化,则为 ; false 如果 JSON 是写入的,则没有任何额外的空格。 默认值为 false

适用于