3 ms·
Another thing I disagree with is the idea that JSON uses fewer characters. This is not true: JSON uses more characters. Example: <aaaa bbbb="bbbb" cccc="cc
by Mikhail_Edoshin 9mo ago
Another thing I disagree with is the idea that JSON uses fewer characters. This is not true: JSON uses more characters. Example:
<aaaa bbbb="bbbb" cccc="cccc"/>
{"bbbb":"bbbb","cccc":"cccc"}
See that the difference is only two characters? Yet XML also has a four-character element name, which JSON lacks. And JSON is packed to the limit, while XML is written naturally and is actually more readable than JSON.
- coffeebeqn 9mo agoThis is an extremely cherry picked example. One liner with only attributes?