Click or drag to resize
Json.NET

JsonWriter Methods

 

The JsonWriter type exposes the following members.

Methods
  NameDescription
Public methodClose
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.
Public methodCloseAsync
Asynchronously closes this writer. If CloseOutput is set to true, the destination is also closed.
Protected methodDispose
Releases unmanaged and - optionally - managed resources.
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodFlush
Flushes whatever is in the buffer to the destination and also flushes the destination.
Public methodFlushAsync
Asynchronously flushes whatever is in the buffer to the destination and also flushes the destination.
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Protected methodSetWriteState
Sets the state of the JsonWriter.
Protected methodSetWriteStateAsync
Asynchronously ets the state of the JsonWriter.
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Public methodWriteComment
Writes a comment /*...*/ containing the specified text.
Public methodWriteCommentAsync
Asynchronously writes a comment /*...*/ containing the specified text.
Public methodWriteEnd
Writes the end of the current JSON object or array.
Protected methodWriteEnd(JsonToken)
Writes the specified end token.
Public methodWriteEndArray
Writes the end of an array.
Public methodWriteEndArrayAsync
Asynchronously writes the end of an array.
Public methodWriteEndAsync(CancellationToken)
Asynchronously writes the end of the current JSON object or array.
Protected methodWriteEndAsync(JsonToken, CancellationToken)
Asynchronously writes the specified end token.
Public methodWriteEndConstructor
Writes the end constructor.
Public methodWriteEndConstructorAsync
Asynchronously writes the end of a constructor.
Public methodWriteEndObject
Writes the end of a JSON object.
Public methodWriteEndObjectAsync
Asynchronously writes the end of a JSON object.
Protected methodWriteIndent
Writes indent characters.
Protected methodWriteIndentAsync
Asynchronously writes indent characters.
Protected methodWriteIndentSpace
Writes an indent space.
Protected methodWriteIndentSpaceAsync
Asynchronously writes an indent space.
Public methodWriteNull
Writes a null value.
Public methodWriteNullAsync
Asynchronously writes a null value.
Public methodWritePropertyName(String)
Writes the property name of a name/value pair of a JSON object.
Public methodWritePropertyName(String, Boolean)
Writes the property name of a name/value pair of a JSON object.
Public methodWritePropertyNameAsync(String, CancellationToken)
Asynchronously writes the property name of a name/value pair of a JSON object.
Public methodWritePropertyNameAsync(String, Boolean, CancellationToken)
Asynchronously writes the property name of a name/value pair of a JSON object.
Public methodWriteRaw
Writes raw JSON without changing the writer's state.
Public methodWriteRawAsync
Asynchronously writes raw JSON without changing the writer's state.
Public methodWriteRawValue
Writes raw JSON where a value is expected and updates the writer's state.
Public methodWriteRawValueAsync
Asynchronously writes raw JSON where a value is expected and updates the writer's state.
Public methodWriteStartArray
Writes the beginning of a JSON array.
Public methodWriteStartArrayAsync
Asynchronously writes the beginning of a JSON array.
Public methodWriteStartConstructor
Writes the start of a constructor with the given name.
Public methodWriteStartConstructorAsync
Asynchronously writes the start of a constructor with the given name.
Public methodWriteStartObject
Writes the beginning of a JSON object.
Public methodWriteStartObjectAsync
Asynchronously writes the beginning of a JSON object.
Public methodWriteToken(JsonReader)
Writes the current JsonReader token and its children.
Public methodWriteToken(JsonToken)
Writes the JsonToken token.
Public methodWriteToken(JsonReader, Boolean)
Writes the current JsonReader token.
Public methodWriteToken(JsonToken, Object)
Writes the JsonToken token and its value.
Public methodWriteTokenAsync(JsonReader, CancellationToken)
Asynchronously writes the current JsonReader token.
Public methodWriteTokenAsync(JsonToken, CancellationToken)
Asynchronously writes the JsonToken token and its value.
Public methodWriteTokenAsync(JsonReader, Boolean, CancellationToken)
Asynchronously writes the current JsonReader token.
Public methodWriteTokenAsync(JsonToken, Object, CancellationToken)
Asynchronously writes the JsonToken token and its value.
Public methodWriteUndefined
Writes an undefined value.
Public methodWriteUndefinedAsync
Asynchronously writes an undefined value.
Public methodWriteValue(Boolean)
Writes a Boolean value.
Public methodWriteValue(Byte)
Writes a Byte value.
Public methodWriteValue(Byte)
Writes a Byte[] value.
Public methodWriteValue(Char)
Writes a Char value.
Public methodWriteValue(DateTime)
Writes a DateTime value.
Public methodWriteValue(DateTimeOffset)
Writes a DateTimeOffset value.
Public methodWriteValue(Decimal)
Writes a Decimal value.
Public methodWriteValue(Double)
Writes a Double value.
Public methodWriteValue(Guid)
Writes a Guid value.
Public methodWriteValue(Int16)
Writes a Int16 value.
Public methodWriteValue(Int32)
Writes a Int32 value.
Public methodWriteValue(Int64)
Writes a Int64 value.
Public methodWriteValue(NullableBoolean)
Public methodWriteValue(NullableByte)
Public methodWriteValue(NullableChar)
Public methodWriteValue(NullableDateTime)
Public methodWriteValue(NullableDateTimeOffset)
Public methodWriteValue(NullableDecimal)
Public methodWriteValue(NullableDouble)
Public methodWriteValue(NullableGuid)
Public methodWriteValue(NullableInt16)
Public methodWriteValue(NullableInt32)
Public methodWriteValue(NullableInt64)
Public methodWriteValue(NullableSByte)
Public methodWriteValue(NullableSingle)
Public methodWriteValue(NullableTimeSpan)
Public methodWriteValue(NullableUInt16)
Public methodWriteValue(NullableUInt32)
Public methodWriteValue(NullableUInt64)
Public methodWriteValue(Object)
Writes a Object value. An error will raised if the value cannot be written as a single JSON token.
Public methodWriteValue(SByte)
Writes a SByte value.
Public methodWriteValue(Single)
Writes a Single value.
Public methodWriteValue(String)
Writes a String value.
Public methodWriteValue(TimeSpan)
Writes a TimeSpan value.
Public methodWriteValue(UInt16)
Writes a UInt16 value.
Public methodWriteValue(UInt32)
Writes a UInt32 value.
Public methodWriteValue(UInt64)
Writes a UInt64 value.
Public methodWriteValue(Uri)
Writes a Uri value.
Public methodWriteValueAsync(Boolean, CancellationToken)
Public methodWriteValueAsync(Byte, CancellationToken)
Asynchronously writes a Byte value.
Public methodWriteValueAsync(Byte, CancellationToken)
Asynchronously writes a Byte[] value.
Public methodWriteValueAsync(Char, CancellationToken)
Asynchronously writes a Char value.
Public methodWriteValueAsync(DateTime, CancellationToken)
Asynchronously writes a DateTime value.
Public methodWriteValueAsync(DateTimeOffset, CancellationToken)
Asynchronously writes a DateTimeOffset value.
Public methodWriteValueAsync(Decimal, CancellationToken)
Asynchronously writes a Decimal value.
Public methodWriteValueAsync(Double, CancellationToken)
Asynchronously writes a Double value.
Public methodWriteValueAsync(Guid, CancellationToken)
Asynchronously writes a Guid value.
Public methodWriteValueAsync(Int16, CancellationToken)
Asynchronously writes a Int16 value.
Public methodWriteValueAsync(Int32, CancellationToken)
Asynchronously writes a Int32 value.
Public methodWriteValueAsync(Int64, CancellationToken)
Asynchronously writes a Int64 value.
Public methodWriteValueAsync(NullableBoolean, CancellationToken)
Asynchronously writes a Boolean value.
Public methodWriteValueAsync(NullableByte, CancellationToken)
Public methodWriteValueAsync(NullableChar, CancellationToken)
Public methodWriteValueAsync(NullableDateTime, CancellationToken)
Public methodWriteValueAsync(NullableDateTimeOffset, CancellationToken)
Public methodWriteValueAsync(NullableDecimal, CancellationToken)
Public methodWriteValueAsync(NullableDouble, CancellationToken)
Public methodWriteValueAsync(NullableGuid, CancellationToken)
Public methodWriteValueAsync(NullableInt16, CancellationToken)
Public methodWriteValueAsync(NullableInt32, CancellationToken)
Public methodWriteValueAsync(NullableInt64, CancellationToken)
Public methodWriteValueAsync(NullableSByte, CancellationToken)
Public methodWriteValueAsync(NullableSingle, CancellationToken)
Public methodWriteValueAsync(NullableTimeSpan, CancellationToken)
Public methodWriteValueAsync(NullableUInt16, CancellationToken)
Public methodWriteValueAsync(NullableUInt32, CancellationToken)
Public methodWriteValueAsync(NullableUInt64, CancellationToken)
Public methodWriteValueAsync(Object, CancellationToken)
Asynchronously writes a Object value.
Public methodWriteValueAsync(SByte, CancellationToken)
Asynchronously writes a SByte value.
Public methodWriteValueAsync(Single, CancellationToken)
Asynchronously writes a Single value.
Public methodWriteValueAsync(String, CancellationToken)
Asynchronously writes a String value.
Public methodWriteValueAsync(TimeSpan, CancellationToken)
Asynchronously writes a TimeSpan value.
Public methodWriteValueAsync(UInt16, CancellationToken)
Asynchronously writes a UInt16 value.
Public methodWriteValueAsync(UInt32, CancellationToken)
Asynchronously writes a UInt32 value.
Public methodWriteValueAsync(UInt64, CancellationToken)
Asynchronously writes a UInt64 value.
Public methodWriteValueAsync(Uri, CancellationToken)
Asynchronously writes a Uri value.
Protected methodWriteValueDelimiter
Writes the JSON value delimiter.
Protected methodWriteValueDelimiterAsync
Asynchronously writes the JSON value delimiter.
Public methodWriteWhitespace
Writes the given white space.
Public methodWriteWhitespaceAsync
Asynchronously writes the given white space.
Top
See Also