You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Slight correction to https://github.com/ijl/orjson#int The first sentence "JSON only requires that implementations accept integers with 53-bit precision" is not correct. JSON places no restrictions on the scale of number types but allows for reasonable limits. The 53 bit limit is a result of JavaScript using double for the representation of numbers.
The text was updated successfully, but these errors were encountered:
One option when encoding larger than 53 bit numbers is to make them strings. It's not for all cases, but it's pretty common too I think. Then a BigInt in javascript can use it, many browsers have it as part of the lang now https://caniuse.com/bigint
Slight correction to https://github.com/ijl/orjson#int The first sentence "JSON only requires that implementations accept integers with 53-bit precision" is not correct. JSON places no restrictions on the scale of number types but allows for reasonable limits. The 53 bit limit is a result of JavaScript using double for the representation of numbers.
The text was updated successfully, but these errors were encountered: