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 does not return error on ambiguous input #19194
Please answer these questions before submitting your issue. Thanks!
What version of Go are you using (
changed the title
encoding/json Unmarshal does not return error on ambigues input
Feb 24, 2017
I'm not sure if I see a bug here. It seems to me that
Have you read this part of the
In the original sample, what's happening is that there are multiple conflicting JSON-tagged fields. Therefore, the last rule applies. All fields are ignored, no error occurs.
Do you see anything wrong with my analysis?