public interface

JSONToken

com.neomades.json.JSONToken

Class Overview

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

See Also

Summary

Constants
int BEGIN_ARRAY The opening of a JSON array.
int BEGIN_OBJECT The opening of a JSON object.
int BOOLEAN A JSON true or false.
int END_ARRAY The closing of a JSON array.
int END_DOCUMENT The end of the JSON stream.
int END_OBJECT The closing of a JSON object.
int NAME A JSON property name.
int NULL A JSON null.
int NUMBER A JSON number represented in this API by a Java double, long, or int.
int STRING A JSON string.

Constants

public static final int BEGIN_ARRAY

The opening of a JSON array. Written using beginObject() and read using beginObject().

Constant Value: 0 (0x00000000)

public static final int BEGIN_OBJECT

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

Constant Value: 2 (0x00000002)

public static final int BOOLEAN

A JSON true or false.

Constant Value: 7 (0x00000007)

public static final int END_ARRAY

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

Constant Value: 1 (0x00000001)

public static final int END_DOCUMENT

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

Constant Value: 9 (0x00000009)

public static final int END_OBJECT

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

Constant Value: 3 (0x00000003)

public static final int NAME

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

Constant Value: 4 (0x00000004)

public static final int NULL

A JSON null.

Constant Value: 8 (0x00000008)

public static final int NUMBER

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

Constant Value: 6 (0x00000006)

public static final int STRING

A JSON string.

Constant Value: 5 (0x00000005)