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 hn newest 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. load replies (1) tobyhinloopen|11 months ago bigint exists
d0mine|11 months ago JSON itself is not limited to neither 52 nor 64-bit integers. integer = -? (digit | onenine digit+) https://json.org/
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. load replies (1)
d0mine|11 months ago
0cf8612b2e1e|11 months ago
dtech|11 months ago
VMG|11 months ago
tobyhinloopen|11 months ago