JsonReaderOptions JsonReaderOptions JsonReaderOptions JsonReaderOptions Struct


Provides the ability for the user to define custom behavior when reading JSON.

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


AllowTrailingCommas AllowTrailingCommas AllowTrailingCommas AllowTrailingCommas

Defines 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. By default, it's set to false, and a is thrown if a trailing comma is encountered.

CommentHandling CommentHandling CommentHandling CommentHandling

Gets or sets how the Utf8JsonReader struct handles comments when reading through the JSON data.

MaxDepth MaxDepth MaxDepth MaxDepth

Gets or sets the maximum depth allowed when reading JSON, with the default (i.e. 0) indicating a max depth of 64. Reading past this depth will throw a .

Applies to