Utf8JsonReader
Provides a high-performance API for forward-only, read-only access to UTF-8 encoded JSON text.
Gets the total number of bytes consumed so far by this instance of the Utf8JsonReader.
Gets the depth of the current token.
Gets the current Utf8JsonReader state to pass to a Utf8JsonReader constructor with more data.
Gets a value that indicates which Value property to use to get the token value.
Gets the mode of this instance of the Utf8JsonReader which indicates whether all the JSON data was provided or there is more data to come.
Gets the current SequencePosition within the provided UTF-8 encoded input ReadOnlySequence<byte> or a default SequencePosition if the Utf8JsonReader struct was constructed with a ReadOnlySpan<byte>.
Gets the index that the last processed JSON token starts at (within the given UTF-8 encoded input text), skipping any white space.
Gets the type of the last processed JSON token in the UTF-8 encoded JSON text.
Gets a value that indicates whether the current ValueSpan or ValueSequence properties contain escape sequences per RFC 8259 section 7, and therefore require unescaping before being consumed.
Gets the raw value of the last processed token as a ReadOnlySequence<byte> slice of the input payload, only if the token is contained within multiple segments.
Gets the raw value of the last processed token as a ReadOnlySpan<byte> slice of the input payload, if the token fits in a single segment or if the reader was constructed with a JSON payload contained in a ReadOnlySpan<byte>.
Initializes a new instance of the Utf8JsonReader structure that processes a read-only span of UTF-8 encoded text and indicates whether the input contains all the text to process.
Initializes a new instance of the Utf8JsonReader structure that processes a read-only span of UTF-8 encoded text using the specified options.
Initializes a new instance of the Utf8JsonReader structure that processes a read-only sequence of UTF-8 encoded text and indicates whether the input contains all the text to process.
Initializes a new instance of the Utf8JsonReader structure that processes a read-only sequence of UTF-8 encoded text using the specified options.
Copies the current JSON token value from the source, unescaped as a UTF-8 string to the destination buffer.
Copies the current JSON token value from the source, unescaped, and transcoded as a UTF-16 char 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, transcoded 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 transcoded 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 string text 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.