I have a struct that maps json of type string to a string. S string `json:"s,string"`
When run with that, it gives me the error: Error: json: invalid use of ,string struct tag, trying to unmarshal "hello" into string I know that it is not really required. But does it have to error out? Is the current behavior planned so for any reason? I was thinking that it's quite ok to over-specify the type here and the stand library would ignore it. Full code: https://play.golang.org/p/gepaK1GsTC -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.