JSONParserNode

Represents a single node of a JSON parse tree.

See parseJSONStream and JSONParserRange more information.

Members

Functions

opEquals
bool opEquals(JSONParserNode other)

Enables equality comparisons.

opEquals
bool opEquals(JSONParserNode other)

Enables equality comparisons.

toHash
size_t toHash()

Enables usage of JSONToken as an associative array key.

toString
string toString()

Converts the node to a string representation.

Properties

key
String key [@property getter]
String key [@property setter]

The key identifier for Kind.key nodes.

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

The kind of this node.

literal
inout(JSONToken!String) literal [@property getter]
JSONToken!String literal [@property setter]

The literal token for Kind.literal nodes.

location
Location location [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.

Meta