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

[NFR] JSON didnt support int64, lets use sidorares/json-bigint #96

Closed
ovr opened this issue Dec 13, 2016 · 1 comment
Closed

[NFR] JSON didnt support int64, lets use sidorares/json-bigint #96

ovr opened this issue Dec 13, 2016 · 1 comment

Comments

@ovr
Copy link

ovr commented Dec 13, 2016

Hey!

About this Problem

Why are large numbers not displayed accurately?

This is a limitation of JavaScript (and therefore JSON). The largest possible number is Number.MAX_SAFE_INTEGER, or 9007199254740991. If you try to use a number larger than this in JavaScript/JSON, you'll lose accuracy.

The idea of JSON Formatter is to show you how the computer sees your JSON, so we don't attempt to circumvent this limitation, otherwise that would give a misleading representation of your data. It's better to see exactly what V8 sees.

https://github.com/sidorares/json-bigint

And write (``) value what JS see if it's > MAX_SAFE_INTEGER

Thanks

@nicole-ashley
Copy link

This is fixed in https://github.com/nikrolls/json-formatter/releases/tag/0.10.0, currently rolling out to the Chrome and Edge stores.

@ovr ovr closed this as completed Mar 6, 2023
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