JSONToken

* A low-level JSON token as returned by JSONLexer.

Constructors

this
this(typeof(null) )

Constructs a token from a primitive data value

this
this(bool value)
Undocumented in source.
this
this(JSONNumber value)
Undocumented in source.
this
this(long value)
Undocumented in source.
this
this(double value)
Undocumented in source.
this
this(JSONString!String value)
Undocumented in source.
this
this(String value)
Undocumented in source.
this
this(Kind kind)

Constructs a token with a specific kind.

Members

Aliases

String
alias String = S
Undocumented in source.

Functions

opAssign
JSONToken opAssign(JSONToken other)
Undocumented in source. Be warned that the author may not have intended to support it.
opEquals
bool opEquals(JSONToken other)

Enables equality comparisons.

opEquals
bool opEquals(JSONToken other)

Enables equality comparisons.

toHash
size_t toHash()

Enables usage of JSONToken as an associative array key.

toString
.string toString()

Converts the token to a string representation.

Properties

boolean
bool boolean [@property getter]
bool boolean [@property setter]

Gets/sets the boolean value of the token.

kind
Kind kind [@property getter]
Kind kind [@property setter]

Gets/sets the kind of the represented token.

number
JSONNumber number [@property getter]
JSONNumber number [@property setter]
long number [@property setter]
double number [@property setter]
BigInt number [@property setter]

Gets/sets the numeric value of the token.

string
const(JSONString!String) string [@property getter]
JSONString!String string [@property setter]
String string [@property setter]

Gets/sets the string value of the token.

Variables

location
Location location;

The location of the token in the input.

Meta