encoding/json: UnmarshalTypeError should tell you what key you were unmarshaling #8254
Labels
Comments
CL https://golang.org/cl/101420043 mentions this issue. |
I think it would be helpful here for json.UnmarshalTypeError to have a reference to the full set of bytes that were being unmarshalled, and the character location where the decoding failed. It could even print context lines with an extra line with a ^ character pointing to the problem character:
|
@petemoore it's already in master by #9693. Using an offset you can then write your own tool for visualization. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
The text was updated successfully, but these errors were encountered: