3 ms·
JSON is data. XML is markup. JSON won. Move on.
by Kilimanjaro 14y ago
JSON is data. XML is markup. JSON won.
Move on.
- huggyface 14y agoJSON is data. XML is markup. While so many key so strongly on the markup element of the name, XML is the structured markup of data into a document. Too many have some baggage that they think Markup means something like HTML, and document means English language text. What this article is talking about is a bit facetious -- JSON seldom replaced XML, but instead was a greenfield choice for data packaging, where previously many used delimited or custom structured techniques. The single reason why JSON "wins" are ease of use, which is the same way that PHP and MySQL won. No one should confuse it with fitness for the task when really it's ease of getting started that defines its success.