3 ms·
> It only costs two bytes And having to have special code to handle getting it as a string instead of a number.
by thayne 6y ago
> It only costs two bytes
And having to have special code to handle getting it as a string instead of a number.
- Spivak 6y agoBut that would be the case anyway because we’re talking about ways to handle numbers that don’t fit in floats. If your JSON has to be put through a black-box pipeline where you don’t know if it will be reencoded at some point by a lossy parser then the only safe thing to do is pass as a string.