IJSONWriter Interface

Provides access to members that control the sequential writing of JSON.

Members

Name Description
Method EndArray Ends an array.
Method EndObject Ends writing of an object.
Method GetStringBuffer Obtains copy of string buffer. Encoding is UTF8.
Method SetFormatted Writes 'pretty' formatting on or off.
Method SetIndent Writes indent for 'pretty' formatting. Default is 2.
Method StartArray Starts an array.
Method StartObject Starts writing an object.
Read-only property Stream Obtains underlying stream. If WriteTo() is not called yet, will return NULL. Also will return NULL if WriteToString() was called.
Method WriteBinary Writes a byte array.
Method WriteBinaryVal Writes a byte array.
Method WriteBoolean Writes a boolean.
Method WriteBooleanVal Writes a boolean in array.
Method WriteByte Writes a byte.
Method WriteByteVal Writes a byte in array.
Method WriteDate Writes a date.
Method WriteDateVal Writes a date in array.
Method WriteDouble Writes a double.
Method WriteDoubleVal Writes a double in array.
Method WriteFloat Writes a float.
Method WriteFloatVal Writes a float in array.
Method WriteInteger Writes an integer.
Method WriteIntegerVal Writes an integer in array.
Method WriteNull Writes null property.
Method WriteNullVal Writes null value in array.
Method WriteShort Writes a short.
Method WriteShortVal Writes a short int in array.
Method WriteString Writes a string property.
Method WriteStringVal Writes a string in array.
Method WriteTo Specifies output JSON stream.
Method WriteToString Redirects writing to internal string buffer.
Method WriteVariant Writes a variant valued property.
Method WriteVariantVal Writes a variant in array.

IJSONWriter.EndArray Method

Ends an array.

Public Sub EndArray ( _
)
public void EndArray (
);

IJSONWriter.EndObject Method

Ends writing of an object.

Public Sub EndObject ( _
)
public void EndObject (
);

IJSONWriter.GetStringBuffer Method

Obtains copy of string buffer. Encoding is UTF8.

Public Function GetStringBuffer ( _
) As Byte[]
public Byte[] GetStringBuffer (
);

IJSONWriter.SetFormatted Method

Writes 'pretty' formatting on or off.

Public Sub SetFormatted ( _
    ByVal Value As Boolean _
)
public void SetFormatted (
    bool Value
);

IJSONWriter.SetIndent Method

Writes indent for 'pretty' formatting. Default is 2.

Public Sub SetIndent ( _
    ByVal Value As Integer _
)
public void SetIndent (
    int Value
);

IJSONWriter.StartArray Method

Starts an array.

Public Sub StartArray ( _
    ByVal Name As String _
)
public void StartArray (
    string Name
);

IJSONWriter.StartObject Method

Starts writing an object.

Public Sub StartObject ( _
    ByVal Name As String _
)
public void StartObject (
    string Name
);

IJSONWriter.Stream Property

Obtains underlying stream. If WriteTo() is not called yet, will return NULL. Also will return NULL if WriteToString() was called.

Public ReadOnly Property Stream As IStream
public IStream Stream {get;}

IJSONWriter.WriteBinary Method

Writes a byte array.

Public Sub WriteBinary ( _
    ByVal Name As String, _
    ByRef Value As Byte[]& _
)
public void WriteBinary (
    string Name,
    ref Byte[]& Value
);

IJSONWriter.WriteBinaryVal Method

Writes a byte array.

Public Sub WriteBinaryVal ( _
    ByRef Value As Byte[]& _
)
public void WriteBinaryVal (
    ref Byte[]& Value
);

IJSONWriter.WriteBoolean Method

Writes a boolean.

Public Sub WriteBoolean ( _
    ByVal Name As String, _
    ByVal Value As Boolean _
)
public void WriteBoolean (
    string Name,
    bool Value
);

IJSONWriter.WriteBooleanVal Method

Writes a boolean in array.

Public Sub WriteBooleanVal ( _
    ByVal Value As Boolean _
)
public void WriteBooleanVal (
    bool Value
);

IJSONWriter.WriteByte Method

Writes a byte.

Public Sub WriteByte ( _
    ByVal Name As String, _
    ByVal Value As Byte _
)
public void WriteByte (
    string Name,
    byte Value
);

IJSONWriter.WriteByteVal Method

Writes a byte in array.

Public Sub WriteByteVal ( _
    ByVal Value As Byte _
)
public void WriteByteVal (
    byte Value
);

IJSONWriter.WriteDate Method

Writes a date.

Public Sub WriteDate ( _
    ByVal Name As String, _
    ByVal Value As DateTime, _
    ByVal asString As Boolean _
)
public void WriteDate (
    string Name,
    DateTime Value,
    bool asString
);

IJSONWriter.WriteDateVal Method

Writes a date in array.

Public Sub WriteDateVal ( _
    ByVal Value As DateTime, _
    ByVal asString As Boolean _
)
public void WriteDateVal (
    DateTime Value,
    bool asString
);

IJSONWriter.WriteDouble Method

Writes a double.

Public Sub WriteDouble ( _
    ByVal Name As String, _
    ByVal Value As Double _
)
public void WriteDouble (
    string Name,
    double Value
);

IJSONWriter.WriteDoubleVal Method

Writes a double in array.

Public Sub WriteDoubleVal ( _
    ByVal Value As Double _
)
public void WriteDoubleVal (
    double Value
);

IJSONWriter.WriteFloat Method

Writes a float.

Public Sub WriteFloat ( _
    ByVal Name As String, _
    ByVal Value As Single _
)
public void WriteFloat (
    string Name,
    float Value
);

IJSONWriter.WriteFloatVal Method

Writes a float in array.

Public Sub WriteFloatVal ( _
    ByVal Value As Single _
)
public void WriteFloatVal (
    float Value
);

IJSONWriter.WriteInteger Method

Writes an integer.

Public Sub WriteInteger ( _
    ByVal Name As String, _
    ByVal Value As Integer _
)
public void WriteInteger (
    string Name,
    int Value
);

IJSONWriter.WriteIntegerVal Method

Writes an integer in array.

Public Sub WriteIntegerVal ( _
    ByVal Value As Integer _
)
public void WriteIntegerVal (
    int Value
);

IJSONWriter.WriteNull Method

Writes null property.

Public Sub WriteNull ( _
    ByVal Name As String _
)
public void WriteNull (
    string Name
);

IJSONWriter.WriteNullVal Method

Writes null value in array.

Public Sub WriteNullVal ( _
)
public void WriteNullVal (
);

IJSONWriter.WriteShort Method

Writes a short.

Public Sub WriteShort ( _
    ByVal Name As String, _
    ByVal Value As Short _
)
public void WriteShort (
    string Name,
    short Value
);

IJSONWriter.WriteShortVal Method

Writes a short int in array.

Public Sub WriteShortVal ( _
    ByVal Value As Short _
)
public void WriteShortVal (
    short Value
);

IJSONWriter.WriteString Method

Writes a string property.

Public Sub WriteString ( _
    ByVal Name As String, _
    ByVal Value As String _
)
public void WriteString (
    string Name,
    string Value
);

IJSONWriter.WriteStringVal Method

Writes a string in array.

Public Sub WriteStringVal ( _
    ByVal Value As String _
)
public void WriteStringVal (
    string Value
);

IJSONWriter.WriteTo Method

Specifies output JSON stream.

Public Sub WriteTo ( _
    ByVal outputStream As IStream _
)
public void WriteTo (
    IStream outputStream
);

IJSONWriter.WriteToString Method

Redirects writing to internal string buffer.

Public Sub WriteToString ( _
)
public void WriteToString (
);

IJSONWriter.WriteVariant Method

Writes a variant valued property.

Public Sub WriteVariant ( _
    ByVal Name As String, _
    ByVal Value As Object _
)
public void WriteVariant (
    string Name,
    object Value
);

IJSONWriter.WriteVariantVal Method

Writes a variant in array.

Public Sub WriteVariantVal ( _
    ByVal Value As Object _
)
public void WriteVariantVal (
    object Value
);

Classes that implement IJSONWriter

Classes Description
JSONWriter A sequential JSON Writer.

Your browser is no longer supported. Please upgrade your browser for the best experience. See our browser deprecation post for more details.