An input range of JSON parser nodes
The callback to invoke for each object field
auto j = parseJSONStream(q{ { "foo": 1, "bar": 2 } }); j.readObject((key) { auto value = j.readDouble; switch (key) { default: assert(false); case "foo": assert(value == 1); break; case "bar": assert(value == 2); break; } }); assert(j.empty);
Reads an object and issues a callback for each field.