Constructors
-
Json
Writer() protected Initializes a new instance of the JsonWriter class.
Methods
- Close() virtual Closes this writer. If CloseOutput is set to true, the destination is also closed. If AutoCompleteOnClose is set to true, the JSON is auto-completed.
-
Close
Async(Cancellation virtual Asynchronously closes this writer. If CloseOutput is set to true, the destination is also closed.Token) - Dispose(Boolean) protectedvirtual Releases unmanaged and - optionally - managed resources.
- Flush() abstract Flushes whatever is in the buffer to the destination and also flushes the destination.
-
Flush
Async(Cancellation virtual Asynchronously flushes whatever is in the buffer to the destination and also flushes the destination.Token) -
Set
Write protected Sets the state of the JsonWriter.State(Json Token, Object) -
Set
Write protected Asynchronously ets the state of the JsonWriter.State Async(Json Token, Object, Cancellation Token) -
Write
Comment(String) virtual Writes a comment /*...*/ containing the specified text. -
Write
Comment virtual Asynchronously writes a comment /*...*/ containing the specified text.Async(String, Cancellation Token) -
Write
End() virtual Writes the end of the current JSON object or array. -
Write
End(Json protectedvirtual Writes the specified end token.Token) -
Write
End virtual Writes the end of an array.Array() -
Write
End virtual Asynchronously writes the end of an array.Array Async(Cancellation Token) -
Write
End virtual Asynchronously writes the end of the current JSON object or array.Async(Cancellation Token) -
Write
End protectedvirtual Asynchronously writes the specified end token.Async(Json Token, Cancellation Token) -
Write
End virtual Writes the end constructor.Constructor() -
Write
End virtual Asynchronously writes the end of a constructor.Constructor Async(Cancellation Token) -
Write
End virtual Writes the end of a JSON object.Object() -
Write
End virtual Asynchronously writes the end of a JSON object.Object Async(Cancellation Token) -
Write
Indent() protectedvirtual Writes indent characters. -
Write
Indent protectedvirtual Asynchronously writes indent characters.Async(Cancellation Token) -
Write
Indent protectedvirtual Writes an indent space.Space() -
Write
Indent protectedvirtual Asynchronously writes an indent space.Space Async(Cancellation Token) -
Write
Null() virtual Writes a null value. -
Write
Null virtual Asynchronously writes a null value.Async(Cancellation Token) -
Write
Property virtual Writes the property name of a name/value pair of a JSON object.Name(String) -
Write
Property virtual Writes the property name of a name/value pair of a JSON object.Name(String, Boolean) -
Write
Property virtual Asynchronously writes the property name of a name/value pair of a JSON object.Name Async(String, Boolean, Cancellation Token) -
Write
Property virtual Asynchronously writes the property name of a name/value pair of a JSON object.Name Async(String, Cancellation Token) -
Write
Raw(String) virtual Writes raw JSON without changing the writer's state. -
Write
Raw virtual Asynchronously writes raw JSON without changing the writer's state.Async(String, Cancellation Token) -
Write
Raw virtual Writes raw JSON where a value is expected and updates the writer's state.Value(String) -
Write
Raw virtual Asynchronously writes raw JSON where a value is expected and updates the writer's state.Value Async(String, Cancellation Token) -
Write
Start virtual Writes the beginning of a JSON array.Array() -
Write
Start virtual Asynchronously writes the beginning of a JSON array.Array Async(Cancellation Token) -
Write
Start virtual Writes the start of a constructor with the given name.Constructor(String) -
Write
Start virtual Asynchronously writes the start of a constructor with the given name.Constructor Async(String, Cancellation Token) -
Write
Start virtual Writes the beginning of a JSON object.Object() -
Write
Start virtual Asynchronously writes the beginning of a JSON object.Object Async(Cancellation Token) -
Write
Token(Json Writes the current JsonReader token and its children.Reader) -
Write
Token(Json Writes the current JsonReader token.Reader, Boolean) -
Write
Token(Json Writes the JsonToken token.Token) -
Write
Token(Json Writes the JsonToken token and its value.Token, Object) -
Write
Token Asynchronously writes the current JsonReader token.Async(Json Reader, Boolean, Cancellation Token) -
Write
Token Asynchronously writes the current JsonReader token.Async(Json Reader, Cancellation Token) -
Write
Token Asynchronously writes the JsonToken token and its value.Async(Json Token, Cancellation Token) -
Write
Token Asynchronously writes the JsonToken token and its value.Async(Json Token, Object, Cancellation Token) -
Write
Undefined() virtual Writes an undefined value. -
Write
Undefined virtual Asynchronously writes an undefined value.Async(Cancellation Token) -
Write
Value(Boolean) virtual Writes a Boolean value. -
Write
Value(Byte) virtual Writes a Byte value. -
Write
Value(Byte[]) virtual Writes a Byte[] value. -
Write
Value(Char) virtual Writes a Char value. -
Write
Value(Date virtual Writes a DateTime value.Time) -
Write
Value(Date virtual Writes a DateTimeOffset value.Time Offset) -
Write
Value(Decimal) virtual Writes a Decimal value. -
Write
Value(Double) virtual Writes a Double value. -
Write
Value(Guid) virtual Writes a Guid value. -
Write
Value(Int16) virtual Writes a Int16 value. -
Write
Value(Int32) virtual Writes a Int32 value. -
Write
Value(Int64) virtual Writes a Int64 value. -
Write
Value(Nullable<Boolean>) virtual Writes a Nullable`1 of Boolean value. -
Write
Value(Nullable<Byte>) virtual Writes a Nullable`1 of Byte value. -
Write
Value(Nullable<Char>) virtual Writes a Nullable`1 of Char value. -
Write
Value(Nullable<Date virtual Writes a Nullable`1 of DateTime value.Time>) -
Write
Value(Nullable<Date virtual Writes a Nullable`1 of DateTimeOffset value.Time Offset>) -
Write
Value(Nullable<Decimal>) virtual Writes a Nullable`1 of Decimal value. -
Write
Value(Nullable<Double>) virtual Writes a Nullable`1 of Double value. -
Write
Value(Nullable<Guid>) virtual Writes a Nullable`1 of Guid value. -
Write
Value(Nullable<Int16>) virtual Writes a Nullable`1 of Int16 value. -
Write
Value(Nullable<Int32>) virtual Writes a Nullable`1 of Int32 value. -
Write
Value(Nullable<Int64>) virtual Writes a Nullable`1 of Int64 value. -
Write
Value(Nullable<SByte>) virtual Writes a Nullable`1 of SByte value. -
Write
Value(Nullable<Single>) virtual Writes a Nullable`1 of Single value. -
Write
Value(Nullable<Time virtual Writes a Nullable`1 of TimeSpan value.Span>) -
Write
Value(Nullable<UInt16>) virtual Writes a Nullable`1 of UInt16 value. -
Write
Value(Nullable<UInt32>) virtual Writes a Nullable`1 of UInt32 value. -
Write
Value(Nullable<UInt64>) virtual Writes a Nullable`1 of UInt64 value. -
Write
Value(Object) virtual Writes a Object value. An error will raised if the value cannot be written as a single JSON token. -
Write
Value(SByte) virtual Writes a SByte value. -
Write
Value(Single) virtual Writes a Single value. -
Write
Value(String) virtual Writes a String value. -
Write
Value(Time virtual Writes a TimeSpan value.Span) -
Write
Value(UInt16) virtual Writes a UInt16 value. -
Write
Value(UInt32) virtual Writes a UInt32 value. -
Write
Value(UInt64) virtual Writes a UInt64 value. -
Write
Value(Uri) virtual Writes a Uri value. -
Write
Value virtual Asynchronously writes a Nullable`1 of Boolean value.Async(Boolean, Cancellation Token) -
Write
Value virtual Asynchronously writes a Byte value.Async(Byte, Cancellation Token) -
Write
Value virtual Asynchronously writes a Byte[] value.Async(Byte[], Cancellation Token) -
Write
Value virtual Asynchronously writes a Char value.Async(Char, Cancellation Token) -
Write
Value virtual Asynchronously writes a DateTime value.Async(Date Time, Cancellation Token) -
Write
Value virtual Asynchronously writes a DateTimeOffset value.Async(Date Time Offset, Cancellation Token) -
Write
Value virtual Asynchronously writes a Decimal value.Async(Decimal, Cancellation Token) -
Write
Value virtual Asynchronously writes a Double value.Async(Double, Cancellation Token) -
Write
Value virtual Asynchronously writes a Guid value.Async(Guid, Cancellation Token) -
Write
Value virtual Asynchronously writes a Int16 value.Async(Int16, Cancellation Token) -
Write
Value virtual Asynchronously writes a Int32 value.Async(Int32, Cancellation Token) -
Write
Value virtual Asynchronously writes a Int64 value.Async(Int64, Cancellation Token) -
Write
Value virtual Asynchronously writes a Boolean value.Async(Nullable<Boolean>, Cancellation Token) -
Write
Value virtual Asynchronously writes a Nullable`1 of Byte value.Async(Nullable<Byte>, Cancellation Token) -
Write
Value virtual Asynchronously writes a Nullable`1 of Char value.Async(Nullable<Char>, Cancellation Token) -
Write
Value virtual Asynchronously writes a Nullable`1 of DateTime value.Async(Nullable<Date Time>, Cancellation Token) -
Write
Value virtual Asynchronously writes a Nullable`1 of DateTimeOffset value.Async(Nullable<Date Time Offset>, Cancellation Token) -
Write
Value virtual Asynchronously writes a Nullable`1 of Decimal value.Async(Nullable<Decimal>, Cancellation Token) -
Write
Value virtual Asynchronously writes a Nullable`1 of Double value.Async(Nullable<Double>, Cancellation Token) -
Write
Value virtual Asynchronously writes a Nullable`1 of Guid value.Async(Nullable<Guid>, Cancellation Token) -
Write
Value virtual Asynchronously writes a Nullable`1 of Int16 value.Async(Nullable<Int16>, Cancellation Token) -
Write
Value virtual Asynchronously writes a Nullable`1 of Int32 value.Async(Nullable<Int32>, Cancellation Token) -
Write
Value virtual Asynchronously writes a Nullable`1 of Int64 value.Async(Nullable<Int64>, Cancellation Token) -
Write
Value virtual Asynchronously writes a Nullable`1 of SByte value.Async(Nullable<SByte>, Cancellation Token) -
Write
Value virtual Asynchronously writes a Nullable`1 of Single value.Async(Nullable<Single>, Cancellation Token) -
Write
Value virtual Asynchronously writes a Nullable`1 of TimeSpan value.Async(Nullable<Time Span>, Cancellation Token) -
Write
Value virtual Asynchronously writes a Nullable`1 of UInt16 value.Async(Nullable<UInt16>, Cancellation Token) -
Write
Value virtual Asynchronously writes a Nullable`1 of UInt32 value.Async(Nullable<UInt32>, Cancellation Token) -
Write
Value virtual Asynchronously writes a Nullable`1 of UInt64 value.Async(Nullable<UInt64>, Cancellation Token) -
Write
Value virtual Asynchronously writes a Object value.Async(Object, Cancellation Token) -
Write
Value virtual Asynchronously writes a SByte value.Async(SByte, Cancellation Token) -
Write
Value virtual Asynchronously writes a Single value.Async(Single, Cancellation Token) -
Write
Value virtual Asynchronously writes a String value.Async(String, Cancellation Token) -
Write
Value virtual Asynchronously writes a TimeSpan value.Async(Time Span, Cancellation Token) -
Write
Value virtual Asynchronously writes a UInt16 value.Async(UInt16, Cancellation Token) -
Write
Value virtual Asynchronously writes a UInt32 value.Async(UInt32, Cancellation Token) -
Write
Value virtual Asynchronously writes a UInt64 value.Async(UInt64, Cancellation Token) -
Write
Value virtual Asynchronously writes a Uri value.Async(Uri, Cancellation Token) -
Write
Value protectedvirtual Writes the JSON value delimiter.Delimiter() -
Write
Value protectedvirtual Asynchronously writes the JSON value delimiter.Delimiter Async(Cancellation Token) -
Write
Whitespace(String) virtual Writes the given white space. -
Write
Whitespace virtual Asynchronously writes the given white space.Async(String, Cancellation Token)
Properties
-
Auto
Complete Gets or sets a value indicating whether the JSON should be auto-completed when this writer is closed.On Close -
Close
Output Gets or sets a value indicating whether the destination should be closed when this writer is closed. -
Container
Path - Culture Gets or sets the culture used when writing JSON. Defaults to InvariantCulture.
-
Date
Format Gets or sets how dates are written to JSON text.Handling -
Date
Format Gets or sets how DateTime and DateTimeOffset values are formatted when writing JSON text.String -
Date
Time Gets or sets how DateTime time zones are handled when writing JSON text.Zone Handling -
Float
Format Gets or sets how special floating point numbers, e.g. NaN, PositiveInfinity and NegativeInfinity, are written to JSON text.Handling - Formatting Gets or sets a value indicating how JSON text output should be formatted.
- Path Gets the path of the writer.
-
String
Escape Gets or sets how strings are escaped when writing JSON text.Handling - Top protected internal Gets the top.
-
Write
State Gets the state of the writer.