-
Notifications
You must be signed in to change notification settings - Fork 1k
Inconsistent error message for unmarshalling #183
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
Comments
so the problem to fix is |
Yes, that should do it. Thanks! |
One more thing. The wording for the error is a little cryptic right now. If you could change it to something similar to the one from |
zhenzou
pushed a commit
to zhenzou/jsoniter
that referenced
this issue
Feb 2, 2022
zhenzou
pushed a commit
to zhenzou/jsoniter
that referenced
this issue
Feb 2, 2022
…so the actual value
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Here's some code which demonstrates the inconsistency for error message between
encoding/json
andjsoniter
:Output:
It would be ideal if I could get the error message same as
encoding/json
but I am fine with slight difference in the error message. However, the error fromjsoniter
includes the entire JSON string. In my case this string was quite large and I had difficulty in understanding the source of the problem.The text was updated successfully, but these errors were encountered: