4 ms·
The note on numbers can be specifically problematic since the format does not specifically restrict numbers to be represented by doubles but many clients will a
by strmpnk 13y ago
The note on numbers can be specifically problematic since the format does not specifically restrict numbers to be represented by doubles but many clients will assume so, creating some hard to find bugs (it's bitten me many times). The others seem more minor compared to its lack of things like maps that support non-string keys.
- Turing_Machine 13y agoHmm.... isn't JSON required to be valid Javascript? Javascript assumes all numbers are double-precision FP, yes?
- draegtun 13y ago> isn't JSON required to be valid Javascript? Not necessarily. See JSON: The JavaScript subset that isn't - http://timelessrepo.com/json-isnt-a-javascript-subset http://timelessrepo.com/json-isnt-a-javascript-subset