tulios / json-viewer

It is a Chrome extension for printing JSON and JSONP.
https://chrome.google.com/webstore/detail/json-viewer/gbmdgpbipfallnflgajpaliibnhdgobh
MIT License
3.36k stars 687 forks source link

JS precision lost #324

Open threetown opened 2 years ago

threetown commented 2 years ago

input:

{"sid":822106502566256641}

output:

{"sid": 822106502566256600}

How to fix this bug?

c-dante commented 2 years ago

Not a bug -- js uses ieee doubles for all numbers. Use a string or big number to represent large integers.