Closed
Description
Smth like this:
json j = ...;
if (j.find("/this/that/then"_json_pointer) != j.end()) ...;
I can use j.value(ptr, def_value)
, but then I can't tell if node actually existed. I can use j.at(...)
-- but I don't want to deal with exceptions.
Edit: j.value()
approach doesn't seem to work either...