Early Preview

This is currently very much a preview. Please feel free to try things out, but don't be upset if anything is not yet working. Feedback is welcome over on our GitHub Dicussions page.

struct System.​Text.​Json.​JsonReaderOptions

Assembly: System.Text.Json

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

Properties

public bool
AllowTrailingCommas
Gets or sets a value that 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.
public bool
AllowMultipleValues
Gets or sets a value that indicates whether the <see cref="T:System.Text.Json.Utf8JsonReader" /> should tolerate zero or more top-level JSON values that are whitespace separated.
CommentHandling
Gets or sets a value that determines how the <see cref="T:System.Text.Json.Utf8JsonReader" /> handles comments when reading through the JSON data.
public int
MaxDepth
Gets or sets the maximum depth allowed when reading JSON, with the default (that is, 0) indicating a maximum depth of 64.

Methods

public bool
Equals​(object obj)
Inherited from ValueType
public int
GetHashCode​()
Inherited from ValueType
public string
ToString​()
Inherited from ValueType
protected void
Finalize​()
Inherited from object
public Type
GetType​()
Inherited from object
protected object
MemberwiseClone​()
Inherited from object