Use a [type switch](http://golang.org/ref/spec#Type_switches), JSON errors will always be a [`*json.SyntaxError` or `*json.UnmarshalTypeError`](http://golang.org/pkg/encoding/json/#SyntaxError).