how to print out the line which causing exception? #806
Labels
kind: question
solution: proposed fix
a fix for the issue has been proposed and waits for confirmation
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: