-
-
Notifications
You must be signed in to change notification settings - Fork 372
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
Large numbers serialized incorrectly #41
Comments
@winseros try this aleksanderd@15823a4 |
@aleksanderd it works fine. I'll use it for now. Thank you! |
alexandro-rezakhani
added a commit
to alexandro-rezakhani/json.lua
that referenced
this issue
Nov 20, 2022
alexandro-rezakhani
added a commit
to alexandro-rezakhani/json.lua
that referenced
this issue
Nov 20, 2022
fix rxi#41: Large numbers serialized incorrectly
Indeed it could be serialized differently, however that is valid JSON. Whatever other library you are parsing it from does not follow the spec. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I have a lua object containing a large number:
local obj = {prop=1925036013156063406}
When the object is serialized, the JSON looks like:
{"prop":1.9250360131561e+18}
and can not be parsed by other JSON libraries on other programming languages.
The correct serializaion output would be:
{"prop":1925036013156063406}
The text was updated successfully, but these errors were encountered: