-
-
Notifications
You must be signed in to change notification settings - Fork 7.4k
Error with non existing key #1981
Copy link
Copy link
Closed
Labels
kind: questionstate: needs more infothe author of the issue needs to provide more detailsthe author of the issue needs to provide more details
Metadata
Metadata
Assignees
Labels
kind: questionstate: needs more infothe author of the issue needs to provide more detailsthe author of the issue needs to provide more details
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