Utf8JsonWriter Utf8JsonWriter Utf8JsonWriter Utf8JsonWriter Class

Definition

Provides a high-performance API for forward-only, non-cached writing of UTF-8 encoded JSON text.

public ref class Utf8JsonWriter sealed : IAsyncDisposable, IDisposable
public sealed class Utf8JsonWriter : IAsyncDisposable, IDisposable
type Utf8JsonWriter = class
    interface IDisposable
    interface IAsyncDisposable
Public NotInheritable Class Utf8JsonWriter
Implements IAsyncDisposable, IDisposable
Inheritance
Utf8JsonWriterUtf8JsonWriterUtf8JsonWriterUtf8JsonWriter
Implements

Remarks

Utf8JsonWriter writes the text sequentially with no caching and by default adheres to the JSON RFC, with the exception of writing comments.

A method that attempts to write invalid JSON when validation is enabled throws a InvalidOperationException with a context-specific error message.

Since this type is a ref struct, it does not directly support async. However, it does provide support for reentrancy to write partial data and to continue writing in chunks.

To be able to format the output with indentation and white space OR to skip validation, create an instance of JsonWriterOptions and pass it in to the writer.

Constructors

Utf8JsonWriter(IBufferWriter<Byte>, JsonWriterOptions) Utf8JsonWriter(IBufferWriter<Byte>, JsonWriterOptions) Utf8JsonWriter(IBufferWriter<Byte>, JsonWriterOptions) Utf8JsonWriter(IBufferWriter<Byte>, JsonWriterOptions)

Constructs a new Utf8JsonWriter instance with a specified System.Buffers.IBufferWriter<System.Byte>.

Utf8JsonWriter(Stream, JsonWriterOptions) Utf8JsonWriter(Stream, JsonWriterOptions) Utf8JsonWriter(Stream, JsonWriterOptions) Utf8JsonWriter(Stream, JsonWriterOptions)

Constructs a new Utf8JsonWriter instance with a specified utf8Json.

Properties

BytesCommitted BytesCommitted BytesCommitted BytesCommitted

Gets the total number of bytes committed to the output by the current instance so far.

BytesPending BytesPending BytesPending BytesPending

Gets the number of bytes written by the Utf8JsonWriter so far that have not yet been flushed to the output and committed.

CurrentDepth CurrentDepth CurrentDepth CurrentDepth

Gets the depth of the current token.

Options Options Options Options

Gets the custom behavior when writing JSON using this instance, which indicates whether to format the output while writing and whether to skip structural JSON validation.

Methods

Dispose() Dispose() Dispose() Dispose()

Commits any leftover JSON text that has not yet been flushed and releases all resources used by the current instance.

DisposeAsync() DisposeAsync() DisposeAsync() DisposeAsync()

Asynchronously commits any leftover JSON text that has not yet been flushed and releases all resources used by the current instance.

Equals(Object) Equals(Object) Equals(Object) Equals(Object)

Determines whether the specified object is equal to the current object.

(Inherited from Object)
Flush() Flush() Flush() Flush()

Commits the JSON text written so far, which makes it visible to the output destination.

FlushAsync(CancellationToken) FlushAsync(CancellationToken) FlushAsync(CancellationToken) FlushAsync(CancellationToken)

Asynchronously commits the JSON text written so far, which makes it visible to the output destination.

GetHashCode() GetHashCode() GetHashCode() GetHashCode()

Serves as the default hash function.

(Inherited from Object)
GetType() GetType() GetType() GetType()

Gets the Type of the current instance.

(Inherited from Object)
MemberwiseClone() MemberwiseClone() MemberwiseClone() MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
Reset() Reset() Reset() Reset()

Resets the internal state of this instance so that it can be reused.

Reset(IBufferWriter<Byte>) Reset(IBufferWriter<Byte>) Reset(IBufferWriter<Byte>) Reset(IBufferWriter<Byte>)

Resets the internal state of this instance so that it can be reused with a new instance of IBufferWriter<T>.

Reset(Stream) Reset(Stream) Reset(Stream) Reset(Stream)

Resets the internal state of this instance so that it can be reused with a new instance of Stream.

ToString() ToString() ToString() ToString()

Returns a string that represents the current object.

(Inherited from Object)
WriteBase64String(JsonEncodedText, ReadOnlySpan<Byte>) WriteBase64String(JsonEncodedText, ReadOnlySpan<Byte>) WriteBase64String(JsonEncodedText, ReadOnlySpan<Byte>) WriteBase64String(JsonEncodedText, ReadOnlySpan<Byte>)
WriteBase64String(ReadOnlySpan<Byte>, ReadOnlySpan<Byte>) WriteBase64String(ReadOnlySpan<Byte>, ReadOnlySpan<Byte>) WriteBase64String(ReadOnlySpan<Byte>, ReadOnlySpan<Byte>) WriteBase64String(ReadOnlySpan<Byte>, ReadOnlySpan<Byte>)
WriteBase64String(ReadOnlySpan<Char>, ReadOnlySpan<Byte>) WriteBase64String(ReadOnlySpan<Char>, ReadOnlySpan<Byte>) WriteBase64String(ReadOnlySpan<Char>, ReadOnlySpan<Byte>) WriteBase64String(ReadOnlySpan<Char>, ReadOnlySpan<Byte>)
WriteBase64String(String, ReadOnlySpan<Byte>) WriteBase64String(String, ReadOnlySpan<Byte>) WriteBase64String(String, ReadOnlySpan<Byte>) WriteBase64String(String, ReadOnlySpan<Byte>)
WriteBase64StringValue(ReadOnlySpan<Byte>) WriteBase64StringValue(ReadOnlySpan<Byte>) WriteBase64StringValue(ReadOnlySpan<Byte>) WriteBase64StringValue(ReadOnlySpan<Byte>)
WriteBoolean(JsonEncodedText, Boolean) WriteBoolean(JsonEncodedText, Boolean) WriteBoolean(JsonEncodedText, Boolean) WriteBoolean(JsonEncodedText, Boolean)
WriteBoolean(ReadOnlySpan<Byte>, Boolean) WriteBoolean(ReadOnlySpan<Byte>, Boolean) WriteBoolean(ReadOnlySpan<Byte>, Boolean) WriteBoolean(ReadOnlySpan<Byte>, Boolean)

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.

WriteBoolean(ReadOnlySpan<Char>, Boolean) WriteBoolean(ReadOnlySpan<Char>, Boolean) WriteBoolean(ReadOnlySpan<Char>, Boolean) WriteBoolean(ReadOnlySpan<Char>, Boolean)

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.

WriteBoolean(String, Boolean) WriteBoolean(String, Boolean) WriteBoolean(String, Boolean) WriteBoolean(String, Boolean)

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.

WriteBooleanValue(Boolean) WriteBooleanValue(Boolean) WriteBooleanValue(Boolean) WriteBooleanValue(Boolean)

Writes a Boolean value (as a JSON literal "true" or "false") as an element of a JSON array.

WriteCommentValue(ReadOnlySpan<Byte>) WriteCommentValue(ReadOnlySpan<Byte>) WriteCommentValue(ReadOnlySpan<Byte>) WriteCommentValue(ReadOnlySpan<Byte>)

Writes a UTF-8 text value as a JSON comment.

WriteCommentValue(ReadOnlySpan<Char>) WriteCommentValue(ReadOnlySpan<Char>) WriteCommentValue(ReadOnlySpan<Char>) WriteCommentValue(ReadOnlySpan<Char>)

Writes a UTF-16 text value as a JSON comment.

WriteCommentValue(String) WriteCommentValue(String) WriteCommentValue(String) WriteCommentValue(String)

Writes a string text value as a JSON comment.

WriteEndArray() WriteEndArray() WriteEndArray() WriteEndArray()

Writes the end of a JSON array.

WriteEndObject() WriteEndObject() WriteEndObject() WriteEndObject()

Writes the end of a JSON object.

WriteNull(JsonEncodedText) WriteNull(JsonEncodedText) WriteNull(JsonEncodedText) WriteNull(JsonEncodedText)
WriteNull(ReadOnlySpan<Byte>) WriteNull(ReadOnlySpan<Byte>) WriteNull(ReadOnlySpan<Byte>) WriteNull(ReadOnlySpan<Byte>)

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.

WriteNull(ReadOnlySpan<Char>) WriteNull(ReadOnlySpan<Char>) WriteNull(ReadOnlySpan<Char>) WriteNull(ReadOnlySpan<Char>)

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.

WriteNull(String) WriteNull(String) WriteNull(String) WriteNull(String)

Writes a property name specified as a string and the JSON literal "null" as part of a name/value pair of a JSON object.

WriteNullValue() WriteNullValue() WriteNullValue() WriteNullValue()

Writes the JSON literal "null" as an element of a JSON array.

WriteNumber(JsonEncodedText, Decimal) WriteNumber(JsonEncodedText, Decimal) WriteNumber(JsonEncodedText, Decimal) WriteNumber(JsonEncodedText, Decimal)
WriteNumber(JsonEncodedText, Double) WriteNumber(JsonEncodedText, Double) WriteNumber(JsonEncodedText, Double) WriteNumber(JsonEncodedText, Double)
WriteNumber(JsonEncodedText, Int32) WriteNumber(JsonEncodedText, Int32) WriteNumber(JsonEncodedText, Int32) WriteNumber(JsonEncodedText, Int32)
WriteNumber(JsonEncodedText, Int64) WriteNumber(JsonEncodedText, Int64) WriteNumber(JsonEncodedText, Int64) WriteNumber(JsonEncodedText, Int64)
WriteNumber(JsonEncodedText, Single) WriteNumber(JsonEncodedText, Single) WriteNumber(JsonEncodedText, Single) WriteNumber(JsonEncodedText, Single)
WriteNumber(JsonEncodedText, UInt32) WriteNumber(JsonEncodedText, UInt32) WriteNumber(JsonEncodedText, UInt32) WriteNumber(JsonEncodedText, UInt32)
WriteNumber(JsonEncodedText, UInt64) WriteNumber(JsonEncodedText, UInt64) WriteNumber(JsonEncodedText, UInt64) WriteNumber(JsonEncodedText, UInt64)
WriteNumber(ReadOnlySpan<Byte>, Decimal) WriteNumber(ReadOnlySpan<Byte>, Decimal) WriteNumber(ReadOnlySpan<Byte>, Decimal) WriteNumber(ReadOnlySpan<Byte>, Decimal)

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.

WriteNumber(ReadOnlySpan<Byte>, Double) WriteNumber(ReadOnlySpan<Byte>, Double) WriteNumber(ReadOnlySpan<Byte>, Double) WriteNumber(ReadOnlySpan<Byte>, Double)

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.

WriteNumber(ReadOnlySpan<Byte>, Int32) WriteNumber(ReadOnlySpan<Byte>, Int32) WriteNumber(ReadOnlySpan<Byte>, Int32) WriteNumber(ReadOnlySpan<Byte>, Int32)

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.

WriteNumber(ReadOnlySpan<Byte>, Int64) WriteNumber(ReadOnlySpan<Byte>, Int64) WriteNumber(ReadOnlySpan<Byte>, Int64) WriteNumber(ReadOnlySpan<Byte>, Int64)

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.

WriteNumber(ReadOnlySpan<Byte>, Single) WriteNumber(ReadOnlySpan<Byte>, Single) WriteNumber(ReadOnlySpan<Byte>, Single) WriteNumber(ReadOnlySpan<Byte>, Single)

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.

WriteNumber(ReadOnlySpan<Byte>, UInt32) WriteNumber(ReadOnlySpan<Byte>, UInt32) WriteNumber(ReadOnlySpan<Byte>, UInt32) WriteNumber(ReadOnlySpan<Byte>, UInt32)

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.

WriteNumber(ReadOnlySpan<Byte>, UInt64) WriteNumber(ReadOnlySpan<Byte>, UInt64) WriteNumber(ReadOnlySpan<Byte>, UInt64) WriteNumber(ReadOnlySpan<Byte>, UInt64)

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.

WriteNumber(ReadOnlySpan<Char>, Decimal) WriteNumber(ReadOnlySpan<Char>, Decimal) WriteNumber(ReadOnlySpan<Char>, Decimal) WriteNumber(ReadOnlySpan<Char>, Decimal)

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.

WriteNumber(ReadOnlySpan<Char>, Double) WriteNumber(ReadOnlySpan<Char>, Double) WriteNumber(ReadOnlySpan<Char>, Double) WriteNumber(ReadOnlySpan<Char>, Double)

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.

WriteNumber(ReadOnlySpan<Char>, Int32) WriteNumber(ReadOnlySpan<Char>, Int32) WriteNumber(ReadOnlySpan<Char>, Int32) WriteNumber(ReadOnlySpan<Char>, Int32)

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.

WriteNumber(ReadOnlySpan<Char>, Int64) WriteNumber(ReadOnlySpan<Char>, Int64) WriteNumber(ReadOnlySpan<Char>, Int64) WriteNumber(ReadOnlySpan<Char>, Int64)

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.

WriteNumber(ReadOnlySpan<Char>, Single) WriteNumber(ReadOnlySpan<Char>, Single) WriteNumber(ReadOnlySpan<Char>, Single) WriteNumber(ReadOnlySpan<Char>, Single)

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.

WriteNumber(ReadOnlySpan<Char>, UInt32) WriteNumber(ReadOnlySpan<Char>, UInt32) WriteNumber(ReadOnlySpan<Char>, UInt32) WriteNumber(ReadOnlySpan<Char>, UInt32)

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.

WriteNumber(ReadOnlySpan<Char>, UInt64) WriteNumber(ReadOnlySpan<Char>, UInt64) WriteNumber(ReadOnlySpan<Char>, UInt64) WriteNumber(ReadOnlySpan<Char>, UInt64)

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.

WriteNumber(String, Decimal) WriteNumber(String, Decimal) WriteNumber(String, Decimal) WriteNumber(String, Decimal)

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.

WriteNumber(String, Double) WriteNumber(String, Double) WriteNumber(String, Double) WriteNumber(String, Double)

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.

WriteNumber(String, Int32) WriteNumber(String, Int32) WriteNumber(String, Int32) WriteNumber(String, Int32)

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.

WriteNumber(String, Int64) WriteNumber(String, Int64) WriteNumber(String, Int64) WriteNumber(String, Int64)

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.

WriteNumber(String, Single) WriteNumber(String, Single) WriteNumber(String, Single) WriteNumber(String, Single)

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.

WriteNumber(String, UInt32) WriteNumber(String, UInt32) WriteNumber(String, UInt32) WriteNumber(String, UInt32)

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.

WriteNumber(String, UInt64) WriteNumber(String, UInt64) WriteNumber(String, UInt64) WriteNumber(String, UInt64)

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.

WriteNumberValue(Decimal) WriteNumberValue(Decimal) WriteNumberValue(Decimal) WriteNumberValue(Decimal)

Writes a Decimal value (as a JSON number) as an element of a JSON array.

WriteNumberValue(Double) WriteNumberValue(Double) WriteNumberValue(Double) WriteNumberValue(Double)

Writes a Double value (as a JSON number) as an element of a JSON array.

WriteNumberValue(Int32) WriteNumberValue(Int32) WriteNumberValue(Int32) WriteNumberValue(Int32)

Writes an Int32 value (as a JSON number) as an element of a JSON array.

WriteNumberValue(Int64) WriteNumberValue(Int64) WriteNumberValue(Int64) WriteNumberValue(Int64)

Writes an Int64 value (as a JSON number) as an element of a JSON array.

WriteNumberValue(Single) WriteNumberValue(Single) WriteNumberValue(Single) WriteNumberValue(Single)

Writes a Single value (as a JSON number) as an element of a JSON array.

WriteNumberValue(UInt32) WriteNumberValue(UInt32) WriteNumberValue(UInt32) WriteNumberValue(UInt32)

Writes a UInt32 value (as a JSON number) as an element of a JSON array.

WriteNumberValue(UInt64) WriteNumberValue(UInt64) WriteNumberValue(UInt64) WriteNumberValue(UInt64)

Writes a UInt64 value (as a JSON number) as an element of a JSON array.

WriteStartArray() WriteStartArray() WriteStartArray() WriteStartArray()

Writes the beginning of a JSON array.

WriteStartArray(JsonEncodedText) WriteStartArray(JsonEncodedText) WriteStartArray(JsonEncodedText) WriteStartArray(JsonEncodedText)
WriteStartArray(ReadOnlySpan<Byte>) WriteStartArray(ReadOnlySpan<Byte>) WriteStartArray(ReadOnlySpan<Byte>) WriteStartArray(ReadOnlySpan<Byte>)

Writes the beginning of a JSON array with a property name specified as a read-only span of bytes as the key.

WriteStartArray(ReadOnlySpan<Char>) WriteStartArray(ReadOnlySpan<Char>) WriteStartArray(ReadOnlySpan<Char>) WriteStartArray(ReadOnlySpan<Char>)

Writes the beginning of a JSON array with a property name specified as a read-only character span as the key.

WriteStartArray(String) WriteStartArray(String) WriteStartArray(String) WriteStartArray(String)

Writes the beginning of a JSON array with a property name specified as a string as the key.

WriteStartObject() WriteStartObject() WriteStartObject() WriteStartObject()

Writes the beginning of a JSON object.

WriteStartObject(JsonEncodedText) WriteStartObject(JsonEncodedText) WriteStartObject(JsonEncodedText) WriteStartObject(JsonEncodedText)
WriteStartObject(ReadOnlySpan<Byte>) WriteStartObject(ReadOnlySpan<Byte>) WriteStartObject(ReadOnlySpan<Byte>) WriteStartObject(ReadOnlySpan<Byte>)

Writes the beginning of a JSON object with a property name specified as a read-only span of bytes as the key.

WriteStartObject(ReadOnlySpan<Char>) WriteStartObject(ReadOnlySpan<Char>) WriteStartObject(ReadOnlySpan<Char>) WriteStartObject(ReadOnlySpan<Char>)

Writes the beginning of a JSON object with a property name specififed as a read-only character span as the key.

WriteStartObject(String) WriteStartObject(String) WriteStartObject(String) WriteStartObject(String)

Writes the beginning of a JSON object with a property name specified as a string as the key.

WriteString(JsonEncodedText, DateTime) WriteString(JsonEncodedText, DateTime) WriteString(JsonEncodedText, DateTime) WriteString(JsonEncodedText, DateTime)
WriteString(JsonEncodedText, DateTimeOffset) WriteString(JsonEncodedText, DateTimeOffset) WriteString(JsonEncodedText, DateTimeOffset) WriteString(JsonEncodedText, DateTimeOffset)
WriteString(JsonEncodedText, Guid) WriteString(JsonEncodedText, Guid) WriteString(JsonEncodedText, Guid) WriteString(JsonEncodedText, Guid)
WriteString(JsonEncodedText, JsonEncodedText) WriteString(JsonEncodedText, JsonEncodedText) WriteString(JsonEncodedText, JsonEncodedText) WriteString(JsonEncodedText, JsonEncodedText)
WriteString(JsonEncodedText, ReadOnlySpan<Byte>) WriteString(JsonEncodedText, ReadOnlySpan<Byte>) WriteString(JsonEncodedText, ReadOnlySpan<Byte>) WriteString(JsonEncodedText, ReadOnlySpan<Byte>)
WriteString(JsonEncodedText, ReadOnlySpan<Char>) WriteString(JsonEncodedText, ReadOnlySpan<Char>) WriteString(JsonEncodedText, ReadOnlySpan<Char>) WriteString(JsonEncodedText, ReadOnlySpan<Char>)
WriteString(JsonEncodedText, String) WriteString(JsonEncodedText, String) WriteString(JsonEncodedText, String) WriteString(JsonEncodedText, String)
WriteString(ReadOnlySpan<Byte>, DateTime) WriteString(ReadOnlySpan<Byte>, DateTime) WriteString(ReadOnlySpan<Byte>, DateTime) WriteString(ReadOnlySpan<Byte>, DateTime)

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.

WriteString(ReadOnlySpan<Byte>, DateTimeOffset) WriteString(ReadOnlySpan<Byte>, DateTimeOffset) WriteString(ReadOnlySpan<Byte>, DateTimeOffset) WriteString(ReadOnlySpan<Byte>, DateTimeOffset)

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.

WriteString(ReadOnlySpan<Byte>, Guid) WriteString(ReadOnlySpan<Byte>, Guid) WriteString(ReadOnlySpan<Byte>, Guid) WriteString(ReadOnlySpan<Byte>, Guid)

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.

WriteString(ReadOnlySpan<Byte>, JsonEncodedText) WriteString(ReadOnlySpan<Byte>, JsonEncodedText) WriteString(ReadOnlySpan<Byte>, JsonEncodedText) WriteString(ReadOnlySpan<Byte>, JsonEncodedText)
WriteString(ReadOnlySpan<Byte>, ReadOnlySpan<Byte>) WriteString(ReadOnlySpan<Byte>, ReadOnlySpan<Byte>) WriteString(ReadOnlySpan<Byte>, ReadOnlySpan<Byte>) WriteString(ReadOnlySpan<Byte>, ReadOnlySpan<Byte>)

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.

WriteString(ReadOnlySpan<Byte>, ReadOnlySpan<Char>) WriteString(ReadOnlySpan<Byte>, ReadOnlySpan<Char>) WriteString(ReadOnlySpan<Byte>, ReadOnlySpan<Char>) WriteString(ReadOnlySpan<Byte>, ReadOnlySpan<Char>)

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.

WriteString(ReadOnlySpan<Byte>, String) WriteString(ReadOnlySpan<Byte>, String) WriteString(ReadOnlySpan<Byte>, String) WriteString(ReadOnlySpan<Byte>, String)

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.

WriteString(ReadOnlySpan<Char>, DateTime) WriteString(ReadOnlySpan<Char>, DateTime) WriteString(ReadOnlySpan<Char>, DateTime) WriteString(ReadOnlySpan<Char>, DateTime)

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.

WriteString(ReadOnlySpan<Char>, DateTimeOffset) WriteString(ReadOnlySpan<Char>, DateTimeOffset) WriteString(ReadOnlySpan<Char>, DateTimeOffset) WriteString(ReadOnlySpan<Char>, DateTimeOffset)

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.

WriteString(ReadOnlySpan<Char>, Guid) WriteString(ReadOnlySpan<Char>, Guid) WriteString(ReadOnlySpan<Char>, Guid) WriteString(ReadOnlySpan<Char>, Guid)

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.

WriteString(ReadOnlySpan<Char>, JsonEncodedText) WriteString(ReadOnlySpan<Char>, JsonEncodedText) WriteString(ReadOnlySpan<Char>, JsonEncodedText) WriteString(ReadOnlySpan<Char>, JsonEncodedText)
WriteString(ReadOnlySpan<Char>, ReadOnlySpan<Byte>) WriteString(ReadOnlySpan<Char>, ReadOnlySpan<Byte>) WriteString(ReadOnlySpan<Char>, ReadOnlySpan<Byte>) WriteString(ReadOnlySpan<Char>, ReadOnlySpan<Byte>)

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.

WriteString(ReadOnlySpan<Char>, ReadOnlySpan<Char>) WriteString(ReadOnlySpan<Char>, ReadOnlySpan<Char>) WriteString(ReadOnlySpan<Char>, ReadOnlySpan<Char>) WriteString(ReadOnlySpan<Char>, ReadOnlySpan<Char>)

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.

WriteString(ReadOnlySpan<Char>, String) WriteString(ReadOnlySpan<Char>, String) WriteString(ReadOnlySpan<Char>, String) WriteString(ReadOnlySpan<Char>, String)

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.

WriteString(String, DateTime) WriteString(String, DateTime) WriteString(String, DateTime) WriteString(String, DateTime)

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.

WriteString(String, DateTimeOffset) WriteString(String, DateTimeOffset) WriteString(String, DateTimeOffset) WriteString(String, DateTimeOffset)

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.

WriteString(String, Guid) WriteString(String, Guid) WriteString(String, Guid) WriteString(String, Guid)

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.

WriteString(String, JsonEncodedText) WriteString(String, JsonEncodedText) WriteString(String, JsonEncodedText) WriteString(String, JsonEncodedText)
WriteString(String, ReadOnlySpan<Byte>) WriteString(String, ReadOnlySpan<Byte>) WriteString(String, ReadOnlySpan<Byte>) WriteString(String, ReadOnlySpan<Byte>)

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.

WriteString(String, ReadOnlySpan<Char>) WriteString(String, ReadOnlySpan<Char>) WriteString(String, ReadOnlySpan<Char>) WriteString(String, ReadOnlySpan<Char>)

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.

WriteString(String, String) WriteString(String, String) WriteString(String, String) WriteString(String, String)

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.

WriteStringValue(DateTime) WriteStringValue(DateTime) WriteStringValue(DateTime) WriteStringValue(DateTime)

Writes a DateTime value (as a JSON string) as an element of a JSON array.

WriteStringValue(DateTimeOffset) WriteStringValue(DateTimeOffset) WriteStringValue(DateTimeOffset) WriteStringValue(DateTimeOffset)

Writes a DateTimeOffset value (as a JSON string) as an element of a JSON array.

WriteStringValue(Guid) WriteStringValue(Guid) WriteStringValue(Guid) WriteStringValue(Guid)

Writes a Guid value (as a JSON string) as an element of a JSON array.

WriteStringValue(JsonEncodedText) WriteStringValue(JsonEncodedText) WriteStringValue(JsonEncodedText) WriteStringValue(JsonEncodedText)
WriteStringValue(ReadOnlySpan<Byte>) WriteStringValue(ReadOnlySpan<Byte>) WriteStringValue(ReadOnlySpan<Byte>) WriteStringValue(ReadOnlySpan<Byte>)

Writes a UTF-8 text value (as a JSON string) as an element of a JSON array.

WriteStringValue(ReadOnlySpan<Char>) WriteStringValue(ReadOnlySpan<Char>) WriteStringValue(ReadOnlySpan<Char>) WriteStringValue(ReadOnlySpan<Char>)

Writes a UTF-16 text value (as a JSON string) as an element of a JSON array.

WriteStringValue(String) WriteStringValue(String) WriteStringValue(String) WriteStringValue(String)

Writes a string text value (as a JSON string) as an element of a JSON array.

Extension Methods

ConfigureAwait(IAsyncDisposable, Boolean) ConfigureAwait(IAsyncDisposable, Boolean) ConfigureAwait(IAsyncDisposable, Boolean) ConfigureAwait(IAsyncDisposable, Boolean)
ConfigureAwait(IAsyncDisposable, Boolean) ConfigureAwait(IAsyncDisposable, Boolean) ConfigureAwait(IAsyncDisposable, Boolean) ConfigureAwait(IAsyncDisposable, Boolean)

Applies to