Replies: 1 comment
-
You may want to check out https://json.nlohmann.me/api/macros/json_diagnostics/ |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I think it would be helpful to improve the error messages when trying to read a key is not present in a
nlohmann::json
object. In particular, I have code like this:If "tau" is not present in the JSON data, however, the following error is printed:
This error doesn't give very helpful info for figuring out the problem. It would be helpful to print something like
Beta Was this translation helpful? Give feedback.
All reactions