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@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

Reply via email to