You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to read a value in a json file but I cannot be sure that the variable exists in the file.
When I try to get the value of a non existing key it comes with an error and the program shuts down.
I wonder if there if any way to check if a variable with this key exists in the file before reading it. So this way I could avoid he error.
Thank you for your help
The text was updated successfully, but these errors were encountered:
Thank you for your response.
Now there is another Issue since I changed to the last version of the single include file.
When I try to compile, there are some error messages like this:
error: redefinition of ‘class nlohmann::json_pointer’
class json_pointer
Before I was using version 3.1.2. I updated it because this previous version does not include the 'contains' method.
I am trying to read a value in a json file but I cannot be sure that the variable exists in the file.
When I try to get the value of a non existing key it comes with an error and the program shuts down.
I wonder if there if any way to check if a variable with this key exists in the file before reading it. So this way I could avoid he error.
Thank you for your help
The text was updated successfully, but these errors were encountered: