Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
encoding/json: Unmarshal cannot unmarshal X into Go value of type Y does not tell you the field name #10141
When un-marshaling, go json decode does not report the context ( field name or path to the element) that has a type error. On large files this can be a problem. If you have nested objects it might be harder to find so ideally a stack of keys that form a path would be described if possible.
See stack overflow questions
Originally described in #10134 I have a possible solution there.