IJsonReader

Description

interface Tinman.Core.Json.IJsonReader

Derived from

IPathInfo

Extended by

IJsonStream

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

Public / Methods

Read


public method Read → ()

returns → int32

The node type:
-1 : stream end
0 : list end
1 : array element list begin
2 : object member list begin
3 : IJsonValue.IsNull (no additional read)
4 : ReadString
5 : ReadBoolean
6 : ReadInteger
7 : ReadNumber

Reads the next value from the JSON stream.

IOException

If an I/O error has occurred.

Read​Boolean


[Pure]
public method ReadBoolean → ()

returns → bool

The node value.

Reads a value of the current node without advancing the stream.

IOException

If an I/O error has occurred.

Read​Integer


[Pure]
public method ReadInteger → ()

returns → int64

The node value.

Reads a value of the current node without advancing the stream.

IOException

If an I/O error has occurred.

Read​Member​Comment


[Pure]
public method ReadMemberComment → ()

returns → string

The member comment or null if none.

Reads the member comment of the current node (i.e. the most recent call to Read) without advancing the stream.

IOException

If an I/O error has occurred.

Read​Member​Name


[Pure]
public method ReadMemberName → ()

returns → string

The member name or null if none.

Reads the member name of the current node (i.e. the most recent call to Read) without advancing the stream.

IOException

If an I/O error has occurred.

Read​Number


[Pure]
public method ReadNumber → ()

returns → float64

The node value.

Reads a value of the current node without advancing the stream.

IOException

If an I/O error has occurred.

Read​String


[Pure]
public method ReadString → ()

returns → string

The node value.

Reads a value of the current node without advancing the stream.

IOException

If an I/O error has occurred.