top | item 43490078

(no title)

diekhans | 11 months ago

Plus the 64-bit integer problem, really 52-bit integers, due to JS not having integers.

discuss

order

d0mine|11 months ago

JSON itself is not limited to neither 52 nor 64-bit integers.

    integer = -? (digit | onenine digit+)
    
https://json.org/

0cf8612b2e1e|11 months ago

That’s a JavaScript problem, not JSON.

dtech|11 months ago

Most good parsers have an option to parse to integers or arbitrary precision decimals.

VMG|11 months ago

Agreed. Which means that Javascript does not have a good parser.