Utf8JsonReader
processes the text sequentially with no caching and by default adheres strictly to the JSON RFC.
When Utf8JsonReader
encounters invalid JSON, it throws a JsonException with basic error information like line number and byte position on the line.
Since this type is a ref struct, it doesn't directly support async. However, it does provide support for reentrancy to read incomplete data and to continue reading once more data is presented.
To be able to set max depth while reading or to allow skipping comments, create an instance of JsonReaderOptions and pass it to the reader.
Copies the current JSON token value from the source, unescaped, as UTF-8 bytes to a buffer.
Copies the current JSON token value from the source, unescaped, as UTF-16 characters to a buffer.
Reads the next JSON token value from the source as a Boolean.
Parses the current JSON token value from the source as a Byte.
Parses the current JSON token value from the source and decodes the Base64 encoded JSON string as a byte array.
Parses the current JSON token value from the source as a comment and transcodes it as a String.
Reads the next JSON token value from the source and parses it to a DateTime.
Reads the next JSON token value from the source and parses it to a DateTimeOffset.
Reads the next JSON token value from the source and parses it to a Decimal.
Reads the next JSON token value from the source and parses it to a Double.
Reads the next JSON token value from the source and parses it to a Guid.
Parses the current JSON token value from the source as a Int16.
Reads the next JSON token value from the source and parses it to an Int32.
Reads the next JSON token value from the source and parses it to an Int64.
Parses the current JSON token value from the source as an SByte.
Reads the next JSON token value from the source and parses it to a Single.
Reads the next JSON token value from the source unescaped and transcodes it as a string.
Parses the current JSON token value from the source as a UInt16.
Reads the next JSON token value from the source and parses it to a UInt32.
Reads the next JSON token value from the source and parses it to a UInt64.
Reads the next JSON token from the input source.
Skips the children of the current JSON token.
Tries to parse the current JSON token value from the source as a Byte and returns a value that indicates whether the operation succeeded.
Tries to parse the current JSON token value from the source and decodes the Base64 encoded JSON string as a byte array and returns a value that indicates whether the operation succeeded.
Tries to parse the current JSON token value from the source as a DateTime and returns a value that indicates whether the operation succeeded.
Tries to parse the current JSON token value from the source as a DateTimeOffset and returns a value that indicates whether the operation succeeded.
Tries to parse the current JSON token value from the source as a Decimal and returns a value that indicates whether the operation succeeded.
Tries to parse the current JSON token value from the source as a Double and returns a value that indicates whether the operation succeeded.
Tries to parse the current JSON token value from the source as a Guid and returns a value that indicates whether the operation succeeded.
Tries to parse the current JSON token value from the source as an Int16 and returns a value that indicates whether the operation succeeded.
Tries to parse the current JSON token value from the source as an Int32 and returns a value that indicates whether the operation succeeded.
Tries to parse the current JSON token value from the source as an Int64 and returns a value that indicates whether the operation succeeded.
Tries to parse the current JSON token value from the source as an SByte and returns a value that indicates whether the operation succeeded.
Tries to parse the current JSON token value from the source as a Single and returns a value that indicates whether the operation succeeded.
Tries to parse the current JSON token value from the source as a UInt16 and returns a value that indicates whether the operation succeeded.
Tries to parse the current JSON token value from the source as a UInt32 and returns a value that indicates whether the operation succeeded.
Tries to parse the current JSON token value from the source as a UInt64 and returns a value that indicates whether the operation succeeded.
Tries to skip the children of the current JSON token.
Compares the UTF-8 encoded text in a read-only byte span to the unescaped JSON token value in the source and returns a value that indicates whether they match.
Compares the text in a read-only character span to the unescaped JSON token value in the source and returns a value that indicates whether they match.
Compares the string text to the unescaped JSON token value in the source and returns a value that indicates whether they match.