3 ms·
>JSON allows arbitrary integers to be represented as numeric values. JSON doesn't mandate the use of binary numbers, parsers can keep number literals as string
by GoblinSlayer 5y ago
>JSON allows arbitrary integers to be represented as numeric values.
JSON doesn't mandate the use of binary numbers, parsers can keep number literals as strings and let the user choose whatever binary storage.
>The big problems in XML are named closing tags and the weird distinction between children and attributes. JSON did those things better, by not having them at all.
JSON has this design freedom too: should a collection of values be an object or an array?
- josefx 5y ago> JSON doesn't mandate the use of binary numbers, parsers can keep number literals as strings and let the user choose whatever binary storage. So it is a coin toss whether a perfectly valid JSON file can be processed (read/written - say pretty print) by a perfectly valid JSON library without its contents getting trashed? Quality software engineering right there.