I can't believe this !!
MesmerizedInTheMorning via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Fri Nov 13 23:01:47 PST 2015
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.
More information about the Digitalmars-d-learn
mailing list