![]() | JsonWriter Class |
Namespace: Newtonsoft.Json
public abstract class JsonWriter : IDisposable
The JsonWriter type exposes the following members.
Name | Description | |
---|---|---|
![]() | JsonWriter |
Initializes a new instance of the JsonWriter class.
|
Name | Description | |
---|---|---|
![]() | AutoCompleteOnClose |
Gets or sets a value indicating whether the JSON should be auto-completed when this writer is closed.
|
![]() | CloseOutput |
Gets or sets a value indicating whether the destination should be closed when this writer is closed.
|
![]() | Culture |
Gets or sets the culture used when writing JSON. Defaults to InvariantCulture.
|
![]() | DateFormatHandling |
Gets or sets how dates are written to JSON text.
|
![]() | DateFormatString |
Gets or sets how DateTime and DateTimeOffset values are formatted when writing JSON text.
|
![]() | DateTimeZoneHandling |
Gets or sets how DateTime time zones are handled when writing JSON text.
|
![]() | FloatFormatHandling |
Gets or sets how special floating point numbers, e.g. NaN,
PositiveInfinity and NegativeInfinity,
are written to JSON text.
|
![]() | Formatting |
Gets or sets a value indicating how JSON text output should be formatted.
|
![]() | Path |
Gets the path of the writer.
|
![]() | StringEscapeHandling |
Gets or sets how strings are escaped when writing JSON text.
|
![]() | Top |
Gets the top.
|
![]() | WriteState |
Gets the state of the writer.
|
Name | Description | |
---|---|---|
![]() | Close |
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.
|
![]() | CloseAsync |
Asynchronously closes this writer.
If CloseOutput is set to true, the destination is also closed.
|
![]() | Dispose |
Releases unmanaged and - optionally - managed resources.
|
![]() | Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) |
![]() | Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) |
![]() | Flush |
Flushes whatever is in the buffer to the destination and also flushes the destination.
|
![]() | FlushAsync |
Asynchronously flushes whatever is in the buffer to the destination and also flushes the destination.
|
![]() | GetHashCode | Serves as the default hash function. (Inherited from Object.) |
![]() | GetType | Gets the Type of the current instance. (Inherited from Object.) |
![]() | MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) |
![]() | SetWriteState |
Sets the state of the JsonWriter.
|
![]() | SetWriteStateAsync |
Asynchronously ets the state of the JsonWriter.
|
![]() | ToString | Returns a string that represents the current object. (Inherited from Object.) |
![]() | WriteComment |
Writes a comment /*...*/ containing the specified text.
|
![]() | WriteCommentAsync |
Asynchronously writes a comment /*...*/ containing the specified text.
|
![]() | WriteEnd |
Writes the end of the current JSON object or array.
|
![]() | WriteEnd(JsonToken) |
Writes the specified end token.
|
![]() | WriteEndArray |
Writes the end of an array.
|
![]() | WriteEndArrayAsync |
Asynchronously writes the end of an array.
|
![]() | WriteEndAsync(CancellationToken) |
Asynchronously writes the end of the current JSON object or array.
|
![]() | WriteEndAsync(JsonToken, CancellationToken) |
Asynchronously writes the specified end token.
|
![]() | WriteEndConstructor |
Writes the end constructor.
|
![]() | WriteEndConstructorAsync |
Asynchronously writes the end of a constructor.
|
![]() | WriteEndObject |
Writes the end of a JSON object.
|
![]() | WriteEndObjectAsync |
Asynchronously writes the end of a JSON object.
|
![]() | WriteIndent |
Writes indent characters.
|
![]() | WriteIndentAsync |
Asynchronously writes indent characters.
|
![]() | WriteIndentSpace |
Writes an indent space.
|
![]() | WriteIndentSpaceAsync |
Asynchronously writes an indent space.
|
![]() | WriteNull |
Writes a null value.
|
![]() | WriteNullAsync |
Asynchronously writes a null value.
|
![]() | WritePropertyName(String) |
Writes the property name of a name/value pair of a JSON object.
|
![]() | WritePropertyName(String, Boolean) |
Writes the property name of a name/value pair of a JSON object.
|
![]() | WritePropertyNameAsync(String, CancellationToken) |
Asynchronously writes the property name of a name/value pair of a JSON object.
|
![]() | WritePropertyNameAsync(String, Boolean, CancellationToken) |
Asynchronously writes the property name of a name/value pair of a JSON object.
|
![]() | WriteRaw |
Writes raw JSON without changing the writer's state.
|
![]() | WriteRawAsync |
Asynchronously writes raw JSON without changing the writer's state.
|
![]() | WriteRawValue |
Writes raw JSON where a value is expected and updates the writer's state.
|
![]() | WriteRawValueAsync |
Asynchronously writes raw JSON where a value is expected and updates the writer's state.
|
![]() | WriteStartArray |
Writes the beginning of a JSON array.
|
![]() | WriteStartArrayAsync |
Asynchronously writes the beginning of a JSON array.
|
![]() | WriteStartConstructor |
Writes the start of a constructor with the given name.
|
![]() | WriteStartConstructorAsync |
Asynchronously writes the start of a constructor with the given name.
|
![]() | WriteStartObject |
Writes the beginning of a JSON object.
|
![]() | WriteStartObjectAsync |
Asynchronously writes the beginning of a JSON object.
|
![]() | WriteToken(JsonReader) |
Writes the current JsonReader token and its children.
|
![]() | WriteToken(JsonToken) |
Writes the JsonToken token.
|
![]() | WriteToken(JsonReader, Boolean) |
Writes the current JsonReader token.
|
![]() | WriteToken(JsonToken, Object) |
Writes the JsonToken token and its value.
|
![]() | WriteTokenAsync(JsonReader, CancellationToken) |
Asynchronously writes the current JsonReader token.
|
![]() | WriteTokenAsync(JsonToken, CancellationToken) |
Asynchronously writes the JsonToken token and its value.
|
![]() | WriteTokenAsync(JsonReader, Boolean, CancellationToken) |
Asynchronously writes the current JsonReader token.
|
![]() | WriteTokenAsync(JsonToken, Object, CancellationToken) |
Asynchronously writes the JsonToken token and its value.
|
![]() | WriteUndefined |
Writes an undefined value.
|
![]() | WriteUndefinedAsync |
Asynchronously writes an undefined value.
|
![]() | WriteValue(Boolean) |
Writes a Boolean value.
|
![]() | WriteValue(Byte) |
Writes a Byte value.
|
![]() | WriteValue(Byte) |
Writes a Byte[] value.
|
![]() | WriteValue(Char) |
Writes a Char value.
|
![]() | WriteValue(DateTime) |
Writes a DateTime value.
|
![]() | WriteValue(DateTimeOffset) |
Writes a DateTimeOffset value.
|
![]() | WriteValue(Decimal) |
Writes a Decimal value.
|
![]() | WriteValue(Double) |
Writes a Double value.
|
![]() | WriteValue(Guid) |
Writes a Guid value.
|
![]() | WriteValue(Int16) |
Writes a Int16 value.
|
![]() | WriteValue(Int32) |
Writes a Int32 value.
|
![]() | WriteValue(Int64) |
Writes a Int64 value.
|
![]() | WriteValue(NullableBoolean) | |
![]() | WriteValue(NullableByte) | |
![]() | WriteValue(NullableChar) | |
![]() | WriteValue(NullableDateTime) | |
![]() | WriteValue(NullableDateTimeOffset) |
Writes a NullableT of DateTimeOffset value.
|
![]() | WriteValue(NullableDecimal) | |
![]() | WriteValue(NullableDouble) | |
![]() | WriteValue(NullableGuid) | |
![]() | WriteValue(NullableInt16) | |
![]() | WriteValue(NullableInt32) | |
![]() | WriteValue(NullableInt64) | |
![]() | WriteValue(NullableSByte) | |
![]() | WriteValue(NullableSingle) | |
![]() | WriteValue(NullableTimeSpan) | |
![]() | WriteValue(NullableUInt16) | |
![]() | WriteValue(NullableUInt32) | |
![]() | WriteValue(NullableUInt64) | |
![]() | WriteValue(Object) |
Writes a Object value.
An error will raised if the value cannot be written as a single JSON token.
|
![]() | WriteValue(SByte) |
Writes a SByte value.
|
![]() | WriteValue(Single) |
Writes a Single value.
|
![]() | WriteValue(String) |
Writes a String value.
|
![]() | WriteValue(TimeSpan) |
Writes a TimeSpan value.
|
![]() | WriteValue(UInt16) |
Writes a UInt16 value.
|
![]() | WriteValue(UInt32) |
Writes a UInt32 value.
|
![]() | WriteValue(UInt64) |
Writes a UInt64 value.
|
![]() | WriteValue(Uri) |
Writes a Uri value.
|
![]() | WriteValueAsync(Boolean, CancellationToken) | |
![]() | WriteValueAsync(Byte, CancellationToken) |
Asynchronously writes a Byte value.
|
![]() | WriteValueAsync(Byte, CancellationToken) |
Asynchronously writes a Byte[] value.
|
![]() | WriteValueAsync(Char, CancellationToken) |
Asynchronously writes a Char value.
|
![]() | WriteValueAsync(DateTime, CancellationToken) |
Asynchronously writes a DateTime value.
|
![]() | WriteValueAsync(DateTimeOffset, CancellationToken) |
Asynchronously writes a DateTimeOffset value.
|
![]() | WriteValueAsync(Decimal, CancellationToken) |
Asynchronously writes a Decimal value.
|
![]() | WriteValueAsync(Double, CancellationToken) |
Asynchronously writes a Double value.
|
![]() | WriteValueAsync(Guid, CancellationToken) |
Asynchronously writes a Guid value.
|
![]() | WriteValueAsync(Int16, CancellationToken) |
Asynchronously writes a Int16 value.
|
![]() | WriteValueAsync(Int32, CancellationToken) |
Asynchronously writes a Int32 value.
|
![]() | WriteValueAsync(Int64, CancellationToken) |
Asynchronously writes a Int64 value.
|
![]() | WriteValueAsync(NullableBoolean, CancellationToken) |
Asynchronously writes a Boolean value.
|
![]() | WriteValueAsync(NullableByte, CancellationToken) | |
![]() | WriteValueAsync(NullableChar, CancellationToken) | |
![]() | WriteValueAsync(NullableDateTime, CancellationToken) | |
![]() | WriteValueAsync(NullableDateTimeOffset, CancellationToken) |
Asynchronously writes a NullableT of DateTimeOffset value.
|
![]() | WriteValueAsync(NullableDecimal, CancellationToken) | |
![]() | WriteValueAsync(NullableDouble, CancellationToken) | |
![]() | WriteValueAsync(NullableGuid, CancellationToken) | |
![]() | WriteValueAsync(NullableInt16, CancellationToken) | |
![]() | WriteValueAsync(NullableInt32, CancellationToken) | |
![]() | WriteValueAsync(NullableInt64, CancellationToken) | |
![]() | WriteValueAsync(NullableSByte, CancellationToken) | |
![]() | WriteValueAsync(NullableSingle, CancellationToken) | |
![]() | WriteValueAsync(NullableTimeSpan, CancellationToken) | |
![]() | WriteValueAsync(NullableUInt16, CancellationToken) | |
![]() | WriteValueAsync(NullableUInt32, CancellationToken) | |
![]() | WriteValueAsync(NullableUInt64, CancellationToken) | |
![]() | WriteValueAsync(Object, CancellationToken) |
Asynchronously writes a Object value.
|
![]() | WriteValueAsync(SByte, CancellationToken) |
Asynchronously writes a SByte value.
|
![]() | WriteValueAsync(Single, CancellationToken) |
Asynchronously writes a Single value.
|
![]() | WriteValueAsync(String, CancellationToken) |
Asynchronously writes a String value.
|
![]() | WriteValueAsync(TimeSpan, CancellationToken) |
Asynchronously writes a TimeSpan value.
|
![]() | WriteValueAsync(UInt16, CancellationToken) |
Asynchronously writes a UInt16 value.
|
![]() | WriteValueAsync(UInt32, CancellationToken) |
Asynchronously writes a UInt32 value.
|
![]() | WriteValueAsync(UInt64, CancellationToken) |
Asynchronously writes a UInt64 value.
|
![]() | WriteValueAsync(Uri, CancellationToken) |
Asynchronously writes a Uri value.
|
![]() | WriteValueDelimiter |
Writes the JSON value delimiter.
|
![]() | WriteValueDelimiterAsync |
Asynchronously writes the JSON value delimiter.
|
![]() | WriteWhitespace |
Writes the given white space.
|
![]() | WriteWhitespaceAsync |
Asynchronously writes the given white space.
|