public interface JSONToken
JSONToken instances are produced by JSONReader (and can also be written to JSONWriter streams using the JSONWriter.append(JSONToken) method).JSONToken.Type| Modifier and Type | Interface and Description |
|---|---|
static class |
JSONToken.Type
Enumerates the different kinds of tokens that occur in a JSON stream
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
booleanValue()
Returns the value of a property as a
Boolean instance. |
Number |
numberValue()
Returns the value of a property as a
Number instance. |
String |
propertyName()
Returns the name of a property.
|
String |
stringValue()
Returns the value of a property as a
String. |
JSONToken.Type |
type()
This token's type
|
boolean booleanValue()
Boolean instance. Only permissible on instances where type() == JSONToken.Type.BOOLEAN_VALUE.Number numberValue()
Number instance. Only permissible on instances where type() == JSONToken.Type.NUMERIC_VALUE.String propertyName()
type() == JSONToken.Type.PROPERTY_NAME.String stringValue()
String. Only permissible on instsances where type() == JSONToken.Type.STRING_VALUEJSONToken.Type type()