-
-
Notifications
You must be signed in to change notification settings - Fork 6.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add key name to exception #160
Comments
nlohmann
added a commit
that referenced
this issue
Dec 25, 2015
nlohmann
added a commit
that referenced
this issue
Dec 25, 2015
nlohmann
added a commit
that referenced
this issue
Dec 26, 2015
nlohmann
added a commit
that referenced
this issue
Dec 27, 2015
Hi @Furcube, I changed the exceptions accordingly and also overworked the test suite and documentation. I hope you like it. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I use library to deserialize json to class.
Seem to be simple like this:
But at will throw out_of_range without actually telling what it could not find. Makes deserialization without touching json.hpp much harder that it could be.
It would be good for exceptions to be more verbose.
Not sure that it will work in all cases, but it works for mine. I've changed json.hpp like this:
And now I can just log exception and tell what is missing.
The text was updated successfully, but these errors were encountered: