2 ms·
JSON is not javascript, and you can write valid JSON that isn't valid javascript (using unusual line seperators) No JSON standard restricts the range of number
by hanbura 9y ago
JSON is not javascript, and you can write valid JSON that isn't valid javascript (using unusual line seperators)
No JSON standard restricts the range of numbers (except for universally prohibiting NaN and infinity, making JSON numbers clearly not IEEE doubles). The standards warns of potential interoperability issues with numbers outside the numbers representable as double, but they do allow all numbers representable in Base 10.