JsonDocumentOptions JsonDocumentOptions JsonDocumentOptions JsonDocumentOptions Struct


提供使用者在剖析 JSON 以建立 JsonDocument 時,定義自訂行為的功能。Provides the ability for the user to define custom behavior when parsing JSON to create a JsonDocument.

public value class JsonDocumentOptions
public struct JsonDocumentOptions
type JsonDocumentOptions = struct
Public Structure JsonDocumentOptions


AllowTrailingCommas AllowTrailingCommas AllowTrailingCommas AllowTrailingCommas

取得或設定值,指出在所要讀取的 JSON 承載內,是否允許 (並忽略) 物件或陣列中的 JSON 值清單結尾有額外逗號。Gets or sets a value that indicates whether an extra comma at the end of a list of JSON values in an object or array is allowed (and ignored) within the JSON payload being read.

CommentHandling CommentHandling CommentHandling CommentHandling

取得或設定值,判斷 JsonDocument 如何在讀取 JSON 資料時處理註解。Gets or sets a value that determines how the JsonDocument handles comments when reading through the JSON data.

MaxDepth MaxDepth MaxDepth MaxDepth

取得或設定剖析 JSON 資料時允許的最大深度,預設值 (亦即 0) 表示最大深度為 64。Gets or sets the maximum depth allowed when parsing JSON data, with the default (that is, 0) indicating a maximum depth of 64.