Struct JSONParserNode

Represents a single node of a JSON parse tree.

struct JSONParserNode(String) ;

See parseJSONStream and JSONParserRange more information.

Properties

NameTypeDescription
key[get, set] StringThe key identifier for Kind.key nodes.
kind[get, set] KindThe kind of this node.
literal[get, set] inout(JSONToken!String)The literal token for Kind.literal nodes.

Methods

NameDescription
opEquals Enables equality comparisons.
toHash Enables usage of JSONToken as an associative array key.
toString Converts the node to a string representation.