We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
JSON numbers are interpreted as float64 and not int
float64
int
var x interface{} json.Unmarshal([]byte("1"), &x) fmt.Printf("%T", x) // "float64"
The text was updated successfully, but these errors were encountered:
What do you mean? Could you provide some concrete examples demonstrating what is missing in encoding/json?
Sorry, something went wrong.
Possibly @tcyrus means that JSON numbers are interpreted as float64 and not int?
That's because there is no int type in JSON, but number https://tools.ietf.org/html/rfc7159#page-6
number
Closing this issue until it is clarified.
No branches or pull requests
JSON numbers are interpreted as
float64
and notint
The text was updated successfully, but these errors were encountered: