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

Returns a representation of an immutable list of all enum entries, in the order they're declared.

Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard

Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Link copied to clipboard

Returns an array containing the constants of this enum type, in the order they're declared.