Skip to content
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

When key is not found print the key name into error too #1273

Closed
graph opened this issue Oct 3, 2018 · 1 comment
Closed

When key is not found print the key name into error too #1273

graph opened this issue Oct 3, 2018 · 1 comment
Labels
solution: duplicate the issue is a duplicate; refer to the linked issue instead

Comments

@graph
Copy link

graph commented Oct 3, 2018

e.g. when I do

std::string result = jsonObject["hello"];

and "hello" is not found it just does an assert and I don't know what key is being looked up. It would be nice to also print out the key name.

@nlohmann nlohmann added the solution: duplicate the issue is a duplicate; refer to the linked issue instead label Oct 4, 2018
@nlohmann
Copy link
Owner

nlohmann commented Oct 4, 2018

Duplicate #932.

@nlohmann nlohmann closed this as completed Oct 4, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
solution: duplicate the issue is a duplicate; refer to the linked issue instead
Projects
None yet
Development

No branches or pull requests

2 participants