logoalt Hacker News

lighthouse1212today at 5:23 AM2 repliesview on HN

XML was designed for documents; JSON for data structures. The 'lost art' framing implies we forgot something valuable, but what actually happened is we stopped using a document format for data serialization. That's not forgetting - that's learning. XML is still the right choice for its original domain (markup, documents with mixed content). It was never the right choice for API payloads and config files.


Replies

wvenabletoday at 6:08 AM

I think XML for documents lost to markdown.

Between markdown and HTML, there is no need for XML in that domain anymore either.

show 4 replies
locknitpickertoday at 6:02 AM

> XML was designed for documents; JSON for data structures.

JSON wasn't even designed for anything. It's literally the necessary and sufficient part of JavaScript that you could pass to an eval() to get a data structure out. It required zero tooling and even third-party module to hit the ground running.

show 2 replies