JsonReader
Represents a reader that provides fast, non-cached, forward-only access to serialized JSON data.
Gets or sets a value indicating whether the source should be closed when this reader is closed.
Gets or sets the culture used when reading JSON. Defaults to InvariantCulture.
Gets the current reader state.
Gets or sets how custom date formatted strings are parsed when reading JSON.
Gets or sets how date formatted strings, e.g. "\/Date(1198908717056)\/" and "2012-03-21T05:40Z", are parsed when reading JSON.
Gets or sets how DateTime time zones are handled when reading JSON.
Gets the depth of the current token in the JSON document.
Gets or sets how floating point numbers, e.g. 1.0 and 9.9, are parsed when reading JSON text.
Gets or sets the maximum depth allowed when reading JSON. Reading past this depth will throw a JsonReaderException.
Gets the path of the current JSON token.
Gets the quotation mark character used to enclose the value of a string.
Gets or sets a value indicating whether multiple pieces of JSON content can
be read from a continuous stream without erroring.
Gets the type of the current JSON token.
Gets the text value of the current JSON token.
Gets the .NET type for the current JSON token.
protected JsonReader()
Initializes a new instance of the JsonReader class.
Releases unmanaged and - optionally - managed resources.
Reads the next JSON token from the source.
Reads the next JSON token from the source as a Nullable<T> of Boolean.
Asynchronously reads the next JSON token from the source as a Nullable<T> of Boolean.
Reads the next JSON token from the source as a Byte[].
Asynchronously reads the next JSON token from the source as a Byte[].
Reads the next JSON token from the source as a Nullable<T> of DateTime.
Asynchronously reads the next JSON token from the source as a Nullable<T> of DateTime.
Reads the next JSON token from the source as a Nullable<T> of DateTimeOffset.
public virtual Task<DateTimeOffset?> ReadAsDateTimeOffsetAsync(CancellationToken cancellationToken = default)
Asynchronously reads the next JSON token from the source as a Nullable<T> of DateTimeOffset.
Reads the next JSON token from the source as a Nullable<T> of Decimal.
Asynchronously reads the next JSON token from the source as a Nullable<T> of Decimal.
Reads the next JSON token from the source as a Nullable<T> of Double.
Asynchronously reads the next JSON token from the source as a Nullable<T> of Double.
Reads the next JSON token from the source as a Nullable<T> of Int32.
Asynchronously reads the next JSON token from the source as a Nullable<T> of Int32.
Reads the next JSON token from the source as a String.
Asynchronously reads the next JSON token from the source as a String.
Asynchronously reads the next JSON token from the source.
Sets the state based on current token type.
Sets the current token.
Sets the current token and value.
Sets the current token and value.
Skips the children of the current token.
Asynchronously skips the children of the current token.