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

適用於