Token

enum Token

A structure, name, or value type in a JSON-encoded string.

Entries

Link copied to clipboard

The opening of a JSON array. Written using beginArray and read using beginArray.

Link copied to clipboard

The closing of a JSON array. Written using endArray and read using endArray.

Link copied to clipboard

The opening of a JSON object. Written using beginObject and read using beginObject.

Link copied to clipboard

The closing of a JSON object. Written using endObject and read using endObject.

Link copied to clipboard

A JSON property name. Within objects, tokens alternate between names and their values. Written using name and read using nextName

Link copied to clipboard

A JSON string.

Link copied to clipboard

A JSON number represented in this API by a Java double, long, or int.

Link copied to clipboard

A JSON true or false.

Link copied to clipboard

A JSON null.

Link copied to clipboard

The end of the JSON stream. This sentinel value is returned by peek to signal that the JSON-encoded value has no more tokens.

Functions

Link copied to clipboard
open fun valueOf(name: String): Any
Link copied to clipboard
open fun values(): Array<Any>