You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Run the following example:
http://play.golang.org/p/GC9MRwj2NN
Although an error is returned, the JSON parser just stops parsing and inserts a 0 value
instead.
The error is never returned by `json.Unmarshal` itself.
The text was updated successfully, but these errors were encountered:
You're not actually checking the Unmarshal error; only the MarshalIndent one.
Your custom error is correctly returned:
http://play.golang.org/p/CgiHfypUtQ
The text was updated successfully, but these errors were encountered: