Skip to content
New issue

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

gojson always interprets natural JSON numbers as ints. #21

Open
e-dard opened this issue Mar 26, 2015 · 0 comments
Open

gojson always interprets natural JSON numbers as ints. #21

e-dard opened this issue Mar 26, 2015 · 0 comments

Comments

@e-dard
Copy link
Contributor

e-dard commented Mar 26, 2015

At the moment if gojson encounters a natural JSON number it converts it into an int. This isn't always desirable, because sometimes gojson is going to encounter a resource like:

{ "foo": 2.0 }

or

[{ "foo": 2 }, {"foo": 2.3 }]

In both cases gojson will define the JSON numbers in the results type as int.

@e-dard e-dard mentioned this issue Mar 26, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant