encoding/json: interface{} not being stringified when JSON ",string" tag is used #32055
Labels
help wanted
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Milestone
What version of Go are you using (
go version
)?1.12.5 playground
Does this issue reproduce with the latest release?
yes
What operating system and processor architecture are you using (
go env
)?NACL
What did you do?
https://play.golang.org/p/Q4JdghzkBI-
What did you expect to see?
interface{} fields that point to integers should be converted to strings when the string tag is used.
The documentation says:
It applies only to fields of string, floating point, integer, or boolean types
but it also says:
What did you see instead?
They were not converted to strings.
The text was updated successfully, but these errors were encountered: