-
-
Notifications
You must be signed in to change notification settings - Fork 7.4k
Check value for existence by json_pointer #1194
Copy link
Copy link
Closed
Labels
state: needs more infothe author of the issue needs to provide more detailsthe author of the issue needs to provide more detailsstate: stalethe issue has not been updated in a while and will be closed automatically soon unless it is updatedthe issue has not been updated in a while and will be closed automatically soon unless it is updated
Description
Metadata
Metadata
Assignees
Labels
state: needs more infothe author of the issue needs to provide more detailsthe author of the issue needs to provide more detailsstate: stalethe issue has not been updated in a while and will be closed automatically soon unless it is updatedthe issue has not been updated in a while and will be closed automatically soon unless it is updated
I have found no proper way to check element existence.
I can use
json.at("..."_json_pointer)but it will throw an exception if it is missed.I can use
json.value()method. But I have to do it twice to check all cases (or use default that will not used in my json).