JSON prettify and format Long number precision is lost
Describe the bug
Input:
{
"userId": 17478252242305210114
}
Expected output:
{
"userId": 17478252242305210114
}
Actual output (incorrect):
{
"userId": 17478252242305210000
}
Thank you!
What happened?
A bug happened!
System information
npx envinfo --system --browsers
Where did you encounter the bug?
Public app (it-tools.tech)
yaml format has the sama bug!
Hi @zsddyd and @yoyo32599 , fixed in my fork: https://sharevb-it-tools.vercel.app/yaml-prettify and https://sharevb-it-tools.vercel.app/json-prettify
And if you are interested in an up to date version of it-tools, with many improvements, new tools, and bug fixes, as this repo is almost no more maintained, I made a fork here : https://github.com/sharevb/it-tools (https://sharevb-it-tools.vercel.app/ and docker images https://github.com/sharevb/it-tools/pkgs/container/it-tools)
Thank you very much!