Constructors
-
Json
Reader() protected Initializes a new instance of the JsonReader class.
Methods
- Close() virtual Changes the reader's state to Closed. If CloseInput is set to true, the source is also closed.
- Dispose(Boolean) protectedvirtual Releases unmanaged and - optionally - managed resources.
- Read() abstract Reads the next JSON token from the source.
-
Read
As virtual Reads the next JSON token from the source as a Nullable`1 of Boolean.Boolean() -
Read
As virtual Asynchronously reads the next JSON token from the source as a Nullable`1 of Boolean.Boolean Async(Cancellation Token) -
Read
As virtual Reads the next JSON token from the source as a Byte[].Bytes() -
Read
As virtual Asynchronously reads the next JSON token from the source as a Byte[].Bytes Async(Cancellation Token) -
Read
As virtual Reads the next JSON token from the source as a Nullable`1 of DateTime.Date Time() -
Read
As virtual Asynchronously reads the next JSON token from the source as a Nullable`1 of DateTime.Date Time Async(Cancellation Token) -
Read
As virtual Reads the next JSON token from the source as a Nullable`1 of DateTimeOffset.Date Time Offset() -
Read
As virtual Asynchronously reads the next JSON token from the source as a Nullable`1 of DateTimeOffset.Date Time Offset Async(Cancellation Token) -
Read
As virtual Reads the next JSON token from the source as a Nullable`1 of Decimal.Decimal() -
Read
As virtual Asynchronously reads the next JSON token from the source as a Nullable`1 of Decimal.Decimal Async(Cancellation Token) -
Read
As virtual Reads the next JSON token from the source as a Nullable`1 of Double.Double() -
Read
As virtual Asynchronously reads the next JSON token from the source as a Nullable`1 of Double.Double Async(Cancellation Token) -
Read
As virtual Reads the next JSON token from the source as a Nullable`1 of Int32.Int32() -
Read
As virtual Asynchronously reads the next JSON token from the source as a Nullable`1 of Int32.Int32Async(Cancellation Token) -
Read
As virtual Reads the next JSON token from the source as a String.String() -
Read
As virtual Asynchronously reads the next JSON token from the source as a String.String Async(Cancellation Token) -
Read
Async(Cancellation virtual Asynchronously reads the next JSON token from the source.Token) -
Set
State protected Sets the state based on current token type.Based On Current() -
Set
Token(Json protected Sets the current token.Token) -
Set
Token(Json protected Sets the current token and value.Token, Object) -
Set
Token(Json protected Sets the current token and value.Token, Object, Boolean) - Skip() Skips the children of the current token.
-
Skip
Async(Cancellation Asynchronously skips the children of the current token.Token)
Properties
-
Close
Input Gets or sets a value indicating whether the source should be closed when this reader is closed. - Culture Gets or sets the culture used when reading JSON. Defaults to InvariantCulture.
-
Current
State protected Gets the current reader state. -
Date
Format Gets or sets how custom date formatted strings are parsed when reading JSON.String -
Date
Parse Gets or sets how date formatted strings, e.g. "\/Date(1198908717056)\/" and "2012-03-21T05:40Z", are parsed when reading JSON.Handling -
Date
Time Gets or sets how DateTime time zones are handled when reading JSON.Zone Handling - Depth virtual Gets the depth of the current token in the JSON document.
-
Float
Parse Gets or sets how floating point numbers, e.g. 1.0 and 9.9, are parsed when reading JSON text.Handling -
Max
Depth Gets or sets the maximum depth allowed when reading JSON. Reading past this depth will throw a JsonReaderException. - Path virtual Gets the path of the current JSON token.
-
Quote
Char virtual Gets the quotation mark character used to enclose the value of a string. -
Support
Multiple Gets or sets a value indicating whether multiple pieces of JSON content can be read from a continuous stream without erroring.Content -
Token
Type virtual Gets the type of the current JSON token. - Value virtual Gets the text value of the current JSON token.
-
Value
Type virtual Gets the .NET type for the current JSON token.
Nested Types
- State protected internal