A2uiJsonReader


interface A2uiJsonReader : AutoCloseable


Reads a stream of JSON tokens.

Use this interface to pull JSON tokens sequentially without loading the entire document.

Summary

Public functions

Unit

Consumes the opening delimiter of a JSON array.

Unit

Consumes the opening delimiter of a JSON object.

Unit

Consumes the closing delimiter of a JSON array.

Unit

Consumes the closing delimiter of a JSON object.

Boolean

Returns true if the current object or array has more elements.

Boolean

Consumes and returns the next boolean value.

Double

Consumes and returns the next double value.

Int

Consumes and returns the next int value.

Long

Consumes and returns the next long value.

String

Consumes and returns the next property name.

Unit

Consumes the next null token.

String

Consumes and returns the next string value.

A2uiJsonToken

Returns the type of the next token without consuming it.

Unit

Skips the next value and all its children.

Inherited functions

From java.lang.AutoCloseable

Public functions

beginArray

Added in 1.0.0-alpha01
fun beginArray(): Unit

Consumes the opening delimiter of a JSON array.

beginObject

Added in 1.0.0-alpha01
fun beginObject(): Unit

Consumes the opening delimiter of a JSON object.

endArray

Added in 1.0.0-alpha01
fun endArray(): Unit

Consumes the closing delimiter of a JSON array.

endObject

Added in 1.0.0-alpha01
fun endObject(): Unit

Consumes the closing delimiter of a JSON object.

hasNext

Added in 1.0.0-alpha01
fun hasNext(): Boolean

Returns true if the current object or array has more elements.

nextBoolean

Added in 1.0.0-alpha01
fun nextBoolean(): Boolean

Consumes and returns the next boolean value.

nextDouble

Added in 1.0.0-alpha01
fun nextDouble(): Double

Consumes and returns the next double value.

nextInt

Added in 1.0.0-alpha01
fun nextInt(): Int

Consumes and returns the next int value.

nextLong

Added in 1.0.0-alpha01
fun nextLong(): Long

Consumes and returns the next long value.

nextName

Added in 1.0.0-alpha01
fun nextName(): String

Consumes and returns the next property name.

nextNull

Added in 1.0.0-alpha01
fun nextNull(): Unit

Consumes the next null token.

nextString

Added in 1.0.0-alpha01
fun nextString(): String

Consumes and returns the next string value.

peek

Added in 1.0.0-alpha01
fun peek(): A2uiJsonToken

Returns the type of the next token without consuming it.

skipValue

Added in 1.0.0-alpha01
fun skipValue(): Unit

Skips the next value and all its children.