Struct JSONToken
A low-level JSON token as returned by JSONLexer.
Constructors
| Name | Description |
this
|
Constructs a token from a primitive data value
|
this
|
Constructs a token with a specific kind.
|
Properties
| Name | Type | Description |
boolean[get, set]
|
bool | Gets/sets the boolean value of the token.
|
kind[get, set]
|
Kind | Gets/sets the kind of the represented token.
|
number[get, set]
|
JSONNumber | Gets/sets the numeric value of the token.
|
string[get, set]
|
const(JSONString!String) | Gets/sets the string value of the token.
|
Methods
| Name | Description |
opEquals
|
Enables equality comparisons.
|
toHash
|
Enables usage of JSONToken as an associative array key.
|
toString
|
Converts the token to a string representation.
|