5 ms·
Why does JSON.parse corrupt large numbers and how to solve this?
- irispanabaker 4y agothis (https://codebeautify.org/jsonviewer https://codebeautify.org/jsonviewer) json viewer / formatter supports big numbers.. to solve number issue, you need to use the lossless-json lib to avoid that issue. Here is the link: https://github.com/josdejong/lossless-json https://github.com/josdejong/lossless-json
- metaloha 4y agoJust a note on the site itself - please don't wreck scrolling and gestures. Whatever library is messing with scroll speed and swiping needs to be removed. The site feels broken when it works this way :(
- irispanabaker 4y agothis (https://codebeautify.org/jsonviewer https://codebeautify.org/jsonviewer) json viewer / formatter supports big numbers.. to solve number issue, you need to use the lossless-json lib to avoid that issue. Here is the link: https://github.com/josdejong/lossless-json https://github.com/josdejong/lossless-json
- cratermoon 4y agoJulia Evans discussed this recently: https://jvns.ca/blog/2023/01/13/examples-of-floating-point-problems/ https://jvns.ca/blog/2023/01/13/examples-of-floating-point-p...