JsonToken

sealed class JsonToken

Raw tokens produced when reading a JSON document as a stream

Inheritors

Types

Link copied to clipboard

The opening of a JSON array '['

Link copied to clipboard

The opening of a JSON object '{'

Link copied to clipboard
data class Bool(val value: Boolean) : JsonToken

A JSON boolean

Link copied to clipboard

The closing of a JSON array ']'

Link copied to clipboard

The end of the JSON stream to signal that the JSON-encoded value has no more tokens

Link copied to clipboard

The closing of a JSON object '}'

Link copied to clipboard
data class Name(val value: String) : JsonToken

A JSON property name

Link copied to clipboard
object Null : JsonToken

A JSON 'null'

Link copied to clipboard
data class Number(val value: String) : JsonToken

A JSON number (note the raw string value of the number is returned, you are responsible for converting to a concrete Number type)

Link copied to clipboard
data class String(val value: String) : JsonToken

A JSON string

Functions

Link copied to clipboard
open override fun toString(): String