We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Validate()
It would be great to know the key of the value where the validation failed, i.e.
fastjson.Validate(`{"test":"bad json","good":"again"}`)
This gives
cannot parse JSON: cannot parse object: cannot parse object value: string cannot contain control char 0x0A; unparsed tail: ",\"good\":\"again\"}"
For big blobs it would be really handy to know that the key at which is failed was test, so the error might be something like
test
cannot parse JSON: cannot parse object: cannot parse object (test) value: string cannot contain control char 0x0A; unparsed tail: ",\"good\":\"again\"}"
The text was updated successfully, but these errors were encountered:
No branches or pull requests
It would be great to know the key of the value where the validation failed, i.e.
This gives
For big blobs it would be really handy to know that the key at which is failed was
test
, so the error might be something likeThe text was updated successfully, but these errors were encountered: