Signature
bool DValue::has(String s) const
Parameters
s : child key to test
return value : true when the dereferenced value is map-shaped and contains the key
Checks for a child key without creating it. Returns false for scalars and missing keys.
Example
DValue u;
u["name"] = "Ada";
print(u.has("name") ? "has name" : "no name", " / ", u.has("age") ? "has age" : "no age", "\n");
Output
has name / no age