JsonReaderOptions.AllowTrailingCommas 屬性

定義

取得或設定值,定義在所要讀取的 JSON 承載內,是否允許 (並忽略) 物件或陣列中的 JSON 值清單結尾有額外逗號。

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

屬性值

Boolean

true 如果允許額外的逗號,則為 ;否則為 false

備註

根據預設,此屬性會設定為 false ,如果 JsonException 遇到尾端逗號,則會擲回 。

適用於