Skip to content
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

json parse get wrong anwser #155

Open
chongfeng87 opened this issue Aug 18, 2021 · 1 comment
Open

json parse get wrong anwser #155

chongfeng87 opened this issue Aug 18, 2021 · 1 comment

Comments

@chongfeng87
Copy link

chongfeng87 commented Aug 18, 2021

windows npm install json
example test.json
{ "id": 761363861809925136 }
type test.json |json
but get this
{ "id": 761363861809925100 }
number is not right

image

@hzhang08
Copy link

I spoke to @chongfeng87, this value in the test loses trailing digits. This happens when he runs (latest) MinGW console on Windows 10

@trentm were we aware of json tool's compatibility in this scenario (Running json on the MinGW that runs on Windows 10) ?, looks like an overflow bug.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants