On Saturday, 14 November 2015 at 06:51:14 UTC, anonymous wrote:
On 14.11.2015 07:30, MesmerizedInTheMorning wrote:
[...]

JSONValue supports `in`, though:
----
import std.stdio;
import std.json;
void main()
{
    foreach (jsonStr; ["{}", "{\"foo\": 42}"])
    {
        JSONValue jsonObj = parseJSON(jsonStr);
        const JSONValue* p = "foo" in jsonObj;
        if (p is null) writeln("not found");
        else writeln(*p);
    }
}
----

Looks like documentation has been neglected.

What a relief...I should look at the source closer. I guess that the issue should be closed with RESOLVED INVALID.

Reply via email to