An input range of JSON parser nodes
The callback to invoke for each array entry
auto j = parseJSONStream(q{ [ "foo", "bar" ] }); size_t i = 0; j.readArray({ auto value = j.readString(); switch (i++) { default: assert(false); case 0: assert(value == "foo"); break; case 1: assert(value == "bar"); break; } }); assert(j.empty);
Reads an array and issues a callback for each entry.