4 ms·
What’s wrong with using a ‘comment’ key? I’d say not supporting large ints is worse. https://stackoverflow.com/questions/209869/what-is-the-accepted-way-to-se
by grey-area 4y ago
What’s wrong with using a ‘comment’ key?
I’d say not supporting large ints is worse.
https://stackoverflow.com/questions/209869/what-is-the-accepted-way-to-send-64-bit-values-over-json https://stackoverflow.com/questions/209869/what-is-the-accep...
- solarkraft 4y agoIt's pretty inconvenient and ends up in the data, rather than being external to it.
- noctune 4y agoJSON supports numbers of arbitrary and just fine. It's just many reader/writers of JSON does not, and those are so ubiquitous that it's often not practical to use.
- grey-area 4y agoUnfortunately in practice you can’t rely on large numbers being passed through correctly because of this, unless you control both ends and don’t use js.
- olejorgenb 4y agoAFAIK, json does not support NaN and Inf which can be a pain sometimes
- Uvix 4y agoA comment key works for commenting JSON objects, but not for commenting specific keys on an object or values in an array.
- grey-area 4y agoI don’t find that a huge limitation personally. I don’t think data formats should allow comments on values, that is what docs are for.