Utf8JsonWriter
Provides a high-performance API for forward-only, non-cached writing of UTF-8 encoded JSON text.
Gets the total number of bytes committed to the output by the current instance so far.
Gets the number of bytes written by the Utf8JsonWriter so far that have not yet been flushed to the output and committed.
Gets the depth of the current token.
Gets the custom behavior when writing JSON using this instance, which indicates whether to format the output while writing, whether to skip structural JSON validation, and which characters to escape.
Initializes a new instance of the Utf8JsonWriter class using the specified IBufferWriter<T> to write the output to and customization options.
Initializes a new instance of the Utf8JsonWriter class using the specified stream to write the output to and customization options.
Commits any leftover JSON text that has not yet been flushed and releases all resources used by the current instance.
Asynchronously commits any leftover JSON text that has not yet been flushed and releases all resources used by the current instance.
Commits the JSON text written so far, which makes it visible to the output destination.
Asynchronously commits the JSON text written so far, which makes it visible to the output destination.
Resets the internal state of this instance so that it can be reused.
Resets the internal state of this instance so that it can be reused with a new instance of Stream.
Resets the internal state of this instance so that it can be reused with a new instance of IBufferWriter<T>.
Writes the pre-encoded property name and raw bytes value (as a Base64 encoded JSON string) as part of a name/value pair of a JSON object.
Writes the property name and raw bytes value (as a Base64 encoded JSON string) as part of a name/value pair of a JSON object.
Writes the property name and raw bytes value (as a Base64 encoded JSON string) as part of a name/value pair of a JSON object.
Writes the property name and raw bytes value (as a Base64 encoded JSON string) as part of a name/value pair of a JSON object.
Writes the raw bytes value as a Base64 encoded JSON string as an element of a JSON array.
Writes the pre-encoded property name and Boolean value (as a JSON literal true or false) as part of a name/value pair of a JSON object.
Writes a property name specified as a string and a Boolean value (as a JSON literal true or false) as part of a name/value pair of a JSON object.
Writes a property name specified as a read-only character span and a Boolean value (as a JSON literal true or false) as part of a name/value pair of a JSON object.
Writes a property name specified as a read-only span of bytes and a Boolean value (as a JSON literal true or false) as part of a name/value pair of a JSON object.
Writes a Boolean value (as a JSON literal true or false) as an element of a JSON array.
Writes a string text value as a JSON comment.
Writes a UTF-16 text value as a JSON comment.
Writes a UTF-8 text value as a JSON comment.
Writes the end of a JSON array.
Writes the end of a JSON object.
Writes the pre-encoded property name and the JSON literal null as part of a name/value pair of a JSON object.
Writes a property name specified as a string and the JSON literal null as part of a name/value pair of a JSON object.
Writes a property name specified as a read-only character span and the JSON literal null as part of a name/value pair of a JSON object.
Writes a property name specified as a read-only span of bytes and the JSON literal null as part of a name/value pair of a JSON object.
Writes the JSON literal null as an element of a JSON array.
Writes the pre-encoded property name and Decimal value (as a JSON number) as part of a name/value pair of a JSON object.
Writes a property name specified as a string and a Decimal value (as a JSON number) as part of a name/value pair of a JSON object.
Writes a property name specified as a read-only character span and a Decimal value (as a JSON number) as part of a name/value pair of a JSON object.
Writes a property name specified as a read-only span of bytes and a Decimal value (as a JSON number) as part of a name/value pair of a JSON object.
Writes the pre-encoded property name and Double value (as a JSON number) as part of a name/value pair of a JSON object.
Writes a property name specified as a string and a Double value (as a JSON number) as part of a name/value pair of a JSON object.
Writes a property name specified as a read-only character span and a Double value (as a JSON number) as part of a name/value pair of a JSON object.
Writes a property name specified as a read-only span of bytes and a Double value (as a JSON number) as part of a name/value pair of a JSON object.
Writes the pre-encoded property name and Single value (as a JSON number) as part of a name/value pair of a JSON object.
Writes a property name specified as a string and a Single value (as a JSON number) as part of a name/value pair of a JSON object.
Writes a property name specified as a read-only character span and a Single value (as a JSON number) as part of a name/value pair of a JSON object.
Writes a property name specified as a read-only span of bytes and a Single value (as a JSON number) as part of a name/value pair of a JSON object.
Writes the pre-encoded property name and Int64 value (as a JSON number) as part of a name/value pair of a JSON object.
Writes a property name specified as a string and an Int64 value (as a JSON number) as part of a name/value pair of a JSON object.
Writes a property name specified as a read-only character span and an Int64 value (as a JSON number) as part of a name/value pair of a JSON object.
Writes a property name specified as a read-only span of bytes and an Int64 value (as a JSON number) as part of a name/value pair of a JSON object.
Writes the pre-encoded property name and Int32 value (as a JSON number) as part of a name/value pair of a JSON object.
Writes a property name specified as a string and an Int32 value (as a JSON number) as part of a name/value pair of a JSON object.
Writes a property name specified as a read-only character span and an Int32 value (as a JSON number) as part of a name/value pair of a JSON object.
Writes a property name specified as a read-only span of bytes and an Int32 value (as a JSON number) as part of a name/value pair of a JSON object.
Writes the pre-encoded property name and UInt64 value (as a JSON number) as part of a name/value pair of a JSON object.
Writes a property name specified as a string and a UInt64 value (as a JSON number) as part of a name/value pair of a JSON object.
Writes a property name specified as a read-only character span and a UInt64 value (as a JSON number) as part of a name/value pair of a JSON object.
Writes a property name specified as a read-only span of bytes and a UInt64 value (as a JSON number) as part of a name/value pair of a JSON object.
Writes the pre-encoded property name and UInt32 value (as a JSON number) as part of a name/value pair of a JSON object.
Writes a property name specified as a string and a UInt32 value (as a JSON number) as part of a name/value pair of a JSON object.
Writes a property name specified as a read-only character span and a UInt32 value (as a JSON number) as part of a name/value pair of a JSON object.
Writes a property name specified as a read-only span of bytes and a UInt32 value (as a JSON number) as part of a name/value pair of a JSON object.
Writes a Decimal value (as a JSON number) as an element of a JSON array.
Writes a Double value (as a JSON number) as an element of a JSON array.
Writes a Single value (as a JSON number) as an element of a JSON array.
Writes an Int32 value (as a JSON number) as an element of a JSON array.
Writes an Int64 value (as a JSON number) as an element of a JSON array.
Writes a UInt32 value (as a JSON number) as an element of a JSON array.
Writes a UInt64 value (as a JSON number) as an element of a JSON array.
Writes the pre-encoded property name (as a JSON string) as the first part of a name/value pair of a JSON object.
Writes the property name (as a JSON string) as the first part of a name/value pair of a JSON object.
Writes the property name (as a JSON string) as the first part of a name/value pair of a JSON object.
Writes the UTF-8 property name (as a JSON string) as the first part of a name/value pair of a JSON object.
Writes the input as JSON content. It is expected that the input content is a single complete JSON value.
Writes the input as JSON content. It is expected that the input content is a single complete JSON value.
Writes the input as JSON content. It is expected that the input content is a single complete JSON value.
Writes the input as JSON content. It is expected that the input content is a single complete JSON value.
Writes the beginning of a JSON array.
Writes the beginning of a JSON array with a pre-encoded property name as the key.
Writes the beginning of a JSON array with a property name specified as a read-only span of bytes as the key.
Writes the beginning of a JSON array with a property name specified as a string as the key.
Writes the beginning of a JSON array with a property name specified as a read-only character span as the key.
Writes the beginning of a JSON object.
Writes the beginning of a JSON object with a pre-encoded property name as the key.
Writes the beginning of a JSON object with a property name specified as a read-only span of bytes as the key.
Writes the beginning of a JSON object with a property name specified as a string as the key.
Writes the beginning of a JSON object with a property name specified as a read-only character span as the key.
Writes the pre-encoded property name and DateTime value (as a JSON string) as part of a name/value pair of a JSON object.
Writes a property name specified as a string and a DateTime value (as a JSON string) as part of a name/value pair of a JSON object.
Writes a property name specified as a read-only character span and a DateTime value (as a JSON string) as part of a name/value pair of a JSON object.
Writes a UTF-8 property name and a DateTime value (as a JSON string) as part of a name/value pair of a JSON object.
Writes the pre-encoded property name and DateTimeOffset value (as a JSON string) as part of a name/value pair of a JSON object.
Writes a property name specified as a string and a DateTimeOffset value (as a JSON string) as part of a name/value pair of a JSON object.
Writes a property name specified as a read-only character span and a DateTimeOffset value (as a JSON string) as part of a name/value pair of a JSON object.
Writes a UTF-8 property name and a DateTimeOffset value (as a JSON string) as part of a name/value pair of a JSON object.
Writes the pre-encoded property name and Guid value (as a JSON string) as part of a name/value pair of a JSON object.
Writes a property name specified as a string and a Guid value (as a JSON string) as part of a name/value pair of a JSON object.
Writes a property name specified as a read-only character span and a Guid value (as a JSON string) as part of a name/value pair of a JSON object.
Writes a UTF-8 property name and a Guid value (as a JSON string) as part of a name/value pair of a JSON object.
Writes the pre-encoded property name and pre-encoded value (as a JSON string) as part of a name/value pair of a JSON object.
Writes the property name and pre-encoded value (as a JSON string) as part of a name/value pair of a JSON object.
Writes a property name specified as a string and a string text value (as a JSON string) as part of a name/value pair of a JSON object.
Writes a UTF-16 property name and UTF-16 text value (as a JSON string) as part of a name/value pair of a JSON object.
Writes a UTF-8 property name and UTF-8 text value (as a JSON string) as part of a name/value pair of a JSON object.
Writes the pre-encoded property name and string text value (as a JSON string) as part of a name/value pair of a JSON object.
Writes the pre-encoded property name and text value (as a JSON string) as part of a name/value pair of a JSON object.
Writes a property name specified as a string and a UTF-16 text value (as a JSON string) as part of a name/value pair of a JSON object.
Writes a UTF-8 property name and UTF-16 text value (as a JSON string) as part of a name/value pair of a JSON object.
Writes the pre-encoded property name and UTF-8 text value (as a JSON string) as part of a name/value pair of a JSON object.
Writes a property name specified as a string and a UTF-8 text value (as a JSON string) as part of a name/value pair of a JSON object.
Writes a UTF-16 property name and UTF-8 text value (as a JSON string) as part of a name/value pair of a JSON object.
Writes the property name and pre-encoded value (as a JSON string) as part of a name/value pair of a JSON object.
Writes a UTF-16 property name and string text value (as a JSON string) as part of a name/value pair of a JSON object.
Writes the UTF-8 property name and pre-encoded value (as a JSON string) as part of a name/value pair of a JSON object.
Writes a UTF-8 property name and string text value (as a JSON string) as part of a name/value pair of a JSON object.
Writes a DateTime value (as a JSON string) as an element of a JSON array.
Writes a DateTimeOffset value (as a JSON string) as an element of a JSON array.
Writes a Guid value (as a JSON string) as an element of a JSON array.
Writes the pre-encoded text value (as a JSON string) as an element of a JSON array.
Writes a string text value (as a JSON string) as an element of a JSON array.
Writes a UTF-16 text value (as a JSON string) as an element of a JSON array.
Writes a UTF-8 text value (as a JSON string) as an element of a JSON array.