JsonStreamReader

Interface for deserializing JSON documents as a stream of tokens

Functions

Link copied to clipboard
abstract fun nextToken(): JsonToken

Grab the next token in the stream

Link copied to clipboard
abstract fun peek(): JsonToken

Peek at the next token type

Link copied to clipboard
abstract fun skipNext()

Recursively skip the next token. Meant for discarding unwanted/unrecognized properties in a JSON document

Inherited functions

Link copied to clipboard

Return the next token and require that it be of type TExpected or else throw an exception