Token

enum Token : Enum<JsonReader.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 JsonWriter.beginArray and read using JsonReader.beginArray.

Link copied to clipboard

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

Link copied to clipboard

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

Link copied to clipboard

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

Link copied to clipboard

A JSON property name. Within objects, tokens alternate between names and their values. Written using JsonWriter.name and read using JsonReader.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 number represented in this API by a long.

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 JsonReader.peek to signal that the JSON-encoded value has no more tokens.

Link copied to clipboard

A reference to an in-memory value that is reader-specific. Not all readers may support this

Properties

Link copied to clipboard
val name: String
Link copied to clipboard
val ordinal: Int