Hello,
I got this error message, "json: cannot unmarshal number into Go value
of type string". And I looked it up the source file
http://golang.org/src/pkg/json/decode.go, what should I do in this
case? thanks a lot.
// An UnmarshalTypeError describes a JSON value that was
// not appropriate for a value of a specific Go type.
type UnmarshalTypeError struct {
Value string // description of JSON value - "bool", "array",
"number -5"
Type reflect.Type // type of Go value it could not be assigned to
}
func (e *UnmarshalTypeError) String() string {
return "json: cannot unmarshal " + e.Value + " into Go value of
type " + e.Type.String()
}