XML vs JSON Debate
This cluster revolves around comparisons between XML and JSON data formats, debating their respective strengths like schemas and self-documentation versus simplicity and verbosity, and discussing appropriate use cases.
Activity Over Time
Top Contributors
Keywords
Sample Comments
What problem did XML solve that JSON is still trying to?
XML may seem harder than JSON, until you actually try to work with the data. When you need to create an automated system that checks that data has a certain format, XML has support for schemas and there are many software tools for creating schemas, which is something that cannot be said of JSON. Likewise, searching for data is much easier when you have a standard like XPath. Something akin to XPath would be much harder to make for JSON, since it lacks native support for element attributes. When
why did XML happen at all? JSON looks like the obvious solution. :\
XML wasn't meant as replacement for JSON, but for HTML without vocabulary-specific parsing rules (eg. SGML DTDs).
XML has several advantages over JSON: it's much better at self-documentation and the schema validation tools are more powerful. Namespaces compose elegantly. XML has a bad reputation due to enterprise-y abuse of the technology, but that does't mean it's a fundamentally bad idea.
agree with your sentiments,I believe the issue that many people have with XML goes a bit deeper ... using XML means you are creating a bit of distance between yourself and the host programming language. XML stands alone, apart, that distance comes with costs in terms of ease of use (which could have been addressed by proper tooling), as well as many benefits.HTML may not be pleasant to write documents with and I would say exactly the same thing of json ... show me the equiv of a Word docum
XML and JSON are different data formats with different properties and different uses.Please, don't blame one and praise the other, just use what's appropriate. It's somehow like with data structures - say, one won't generally use a graph when he actually needs a set, right?Trying to stash data into a semantically inappropriate format leads to kludges, and I'd say some JSON-based formats (for example, HAL-JSON) feel like so. Obviously, it's the same (or, possib
What are the many other things that use XML? And why would these be better with JSON?
What about XML isn't modern? It's a far more capable format than JSON or anything else you can devise.
Is JSON better for data? XML can be pretty powerful when used properly.