An input range of JSON parser nodes
auto j = parseJSONStream(q{ [ [1, 2, 3], "foo" ] }); assert(j.front.kind == JSONParserNodeKind.arrayStart); j.popFront(); // skips the whole [1, 2, 3] array j.skipValue(); string value = j.readString; assert(value == "foo"); assert(j.front.kind == JSONParserNodeKind.arrayEnd); j.popFront(); assert(j.empty);
Skips a single JSON value in a parser stream.
The value pointed to by nodes.front will be skipped. All JSON types will be skipped, which means in particular that arrays and objects will be skipped recursively.