Is there a way to get an element from a JSON without throwing an exception on failure? #1182
Labels
kind: question
solution: proposed fix
a fix for the issue has been proposed and waits for confirmation
For example, say
j
is an nlohmann::json object. I want to try to get a member called "raw" using the following code, but without throwing an exception if it fails -- exceptions seem to be a time bottleneck in my application.Is it possible?
The text was updated successfully, but these errors were encountered: