Json.opBinaryRight

Checks wheter a particular key is set and returns a pointer to it.

For field that don't exist or have a type of Type.undefined, the in operator will return null.

Examples

auto j = Json.emptyObject;
j["a"] = "foo";
j["b"] = Json.undefined;

assert("a" in j);
assert(("a" in j).get!string == "foo");
assert("b" !in j);
assert("c" !in j);

Meta