2 ms·
XML has two big problems: 1. It's super verbose. Everybody hates writing it. And yes, people do write JSON by hand. 2. It has a weird and confusing data model
by IshKebab 5y ago
XML has two big problems:
1. It's super verbose. Everybody hates writing it. And yes, people do write JSON by hand.
2. It has a weird and confusing data model with both attributes and child elements. Do you do <foo a="1"/> or <foo><a>1</a></foo>? In many many cases it's ambiguous and you end up with a weird mix, whereas in JSON it's obvious and easy.