Freigeben über


IJsonWriter Interface

Definition

Encapsulates logic for serializing objects to JSON.

public interface class IJsonWriter
public interface IJsonWriter
type IJsonWriter = interface
Public Interface IJsonWriter

Methods

WriteComma()

Writes comma.

WriteEndArray()

Writes closing/right square bracket.

WriteEndObject()

Writes closing/right curly brace.

WriteProperty(String, IDictionary<String,Double>)

Writes a IDictionary<TKey, TValue> property.

WriteProperty(String, IDictionary<String,String>)

Writes a IDictionary<TKey, TValue> property.

WriteProperty(String, IJsonSerializable)

Writes an IJsonSerializable object property.

WriteProperty(String, Nullable<Boolean>)

Writes a Boolean property.

WriteProperty(String, Nullable<DateTimeOffset>)

Writes a DateTimeOffset property.

WriteProperty(String, Nullable<Double>)

Writes a Double property.

WriteProperty(String, Nullable<Int32>)

Writes a Int32 property.

WriteProperty(String, Nullable<TimeSpan>)

Writes a TimeSpan property.

WriteProperty(String, String)

Writes a String property.

WritePropertyName(String)

Writes a property name in double quotation marks, followed by a colon.

WriteRawValue(Object)

Writes Object as raw value directly.

WriteStartArray()

Writes opening/left square bracket.

WriteStartObject()

Writes opening/left curly brace.

Applies to

See also