IJsonWriter

Description

interface Tinman.Core.Json.IJsonWriter

Derived from

IPathInfo

Extended by

IJsonStream

Base interface for classes that allow sequential writing of JSON data.

To write a single JSON value, use one of the following methods:

Public / Methods

Write

5 overloads


public method Write1 → ()

Writes a null JSON value.

IOException

If an I/O error has occurred.

See also

JsonValue.Set1


public method Write2 → (1)

value in : bool

The value to write.

Writes a JSON value.

IOException

If an I/O error has occurred.

See also

JsonValue.Set2


public method Write3 → (1)

value in : int64

The value to write.

Writes a JSON value.

IOException

If an I/O error has occurred.

See also

JsonValue.Set4


public method Write4 → (1)

value in : float64

The value to write.

Writes a JSON value.

IOException

If an I/O error has occurred.

See also

JsonValue.Set5


public method Write5 → (1)

value in : string

The value to write.

Writes a JSON value.

IOException

If an I/O error has occurred.

See also

JsonValue.Set6

Write​Array​Begin


public method WriteArrayBegin → (1)

opt : int32 = -1

[>=-1]
The number of array elements or -1 if not known.

Writes the start of a JSON array node.

IOException

If an I/O error has occurred.

Write​Array​End


public method WriteArrayEnd → ()

Writes the end of a JSON array node.

IOException

If an I/O error has occurred.

Write​Member


public method WriteMember → (2)

name in : string

[not-empty]
The member name.

comment opt : string = null

Optional member comment.

Writes the name of the next object member value.

IOException

If an I/O error has occurred.

Write​Object​Begin


public method WriteObjectBegin → (1)

opt : int32 = -1

[>=-1]
The number of object members or -1 if not known.

Writes the start of a JSON object node.

IOException

If an I/O error has occurred.

See also

JsonValue

Write​Object​End


public method WriteObjectEnd → ()

Writes the end of a JSON object node.

IOException

If an I/O error has occurred.

See also

JsonValue