std.json / nested key/value access?
Robert M. Münch
robert.muench at saphirion.com
Fri Nov 15 17:05:22 UTC 2019
I have:
JSONValue j = parseJSON(json_string).object;
writeln(j); // works
writeln(j["a"]); // works
writeln(j["a"].object["b"]); // bombs
Runtime error: std.json.JSONException at std/json.d(276): JSONValue is not
an object
How can I access a nested JSON key/value using something that comes
close to a path notation?
--
Robert M. Münch
http://www.saphirion.com
smarter | better | faster
More information about the Digitalmars-d-learn
mailing list