encoding/json: Add int support for json.Unmarshal #12630
Closed
Labels
Milestone
Comments
What do you mean? Could you provide some concrete examples |
Possibly @tcyrus means that JSON numbers are interpreted as var x interface{}
json.Unmarshal([]byte("1"), &x)
fmt.Printf("%T", x) // "float64" That's because there is no |
Closing this issue until it is clarified. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
JSON numbers are interpreted as
float64
and notint
The text was updated successfully, but these errors were encountered: