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}`
Activity
fix rxi#41: Large numbers serialized incorrectly
aleksanderd commentedon Nov 16, 2022
@winseros try this aleksanderd@15823a4
winseros commentedon Nov 18, 2022
@aleksanderd it works fine. I'll use it for now. Thank you!
fix rxi#41: Large numbers serialized incorrectly #9
Merge pull request #9 from aleksanderd/master
vurvdev commentedon Jun 29, 2023
Indeed it could be serialized differently, however that is valid JSON. Whatever other library you are parsing it from does not follow the spec.