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: Invalid json is parsed ok #21227
Please answer these questions before submitting your issue. Thanks!
What version of Go are you using (
What @dcheney-atlassian said. The docs do say:
If you only want to read one element, use Unmarshal or use https://golang.org/pkg/encoding/json/#Decoder.Token to see if EOF is next.