Conditional exception-free getters #4090
Closed
sergeniously
started this conversation in
Ideas
Replies: 1 comment 3 replies
-
There is the value() function, and contains(). See https://json.nlohmann.me/api/basic_json/ |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Does the library have standard way (API?) to extract value only when a key exists (without throwing an exception)?
Something like this:
Beta Was this translation helpful? Give feedback.
All reactions