-
-
Notifications
You must be signed in to change notification settings - Fork 6.7k
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
how to print out the line which causing exception? #806
Comments
No, this is not possible. Once the JSON text is parsed and the |
(Explanation for the error: when you call |
Great! Thanks. |
Something wrong with my json, but it just print out:
[json.exception.type_error.302] type must be array, but is null
From the error, it is hard to tell which line is wrong in the json file or my code, is there a way to print out the line causing exception?
update:
I check the json, the error is causing by the following line:
{
"email": [....]
}
in the code, there is a typo
vector emails = info["emails"]; //should be "email"
is it possible to print out the line#?
The text was updated successfully, but these errors were encountered: