JsonReaderOptions 結構

定義

可讓使用者定義讀取 JSON 時的自訂行為。

public value class JsonReaderOptions
public struct JsonReaderOptions
type JsonReaderOptions = struct
Public Structure JsonReaderOptions
繼承
JsonReaderOptions

備註

如需詳細資訊,請參閱 如何使用 System.Text.Json 撰寫自訂序列化程式和還原序列化程式

屬性

AllowTrailingCommas

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

CommentHandling

取得或設定值,判斷 Utf8JsonReader 如何在讀取 JSON 資料時處理註解。

MaxDepth

取得或設定讀取 JSON 時允許的最大深度,預設值 (亦即 0) 表示最大深度為 64。

適用於