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

適用於