4 ms·
> much of the reason XML is complex is that it’s trying to solve complex problems of data interchange by providing a meta language to describe the data. As JSON
by snprbob86 15y ago
> much of the reason XML is complex is that it’s trying to solve complex problems of data interchange by providing a meta language to describe the data. As JSON gains wider adoption, it will face some of the same issues XML tackled over the last decade.
shrug I don't actually think these problems are all that complex. XML made them complex.
The bottom line is that you need to treat any data format as a protocol. The only thing you need to know about the data is what protocol it is. A simple file extension pretty much takes care of that. Then each data format can pick whatever (in)formalism they want to describe the protocol.
JSON is popular precisely because it doesn't try to solve any non-problems.
- gaius 15y agoNot only are they not complex, they were solved in the 80s. http://en.wikipedia.org/wiki/Abstract_Syntax_Notation_One http://en.wikipedia.org/wiki/Abstract_Syntax_Notation_One
- __rkaup__ 15y agoJSON has a nice way of reinventing that wheel on their website. http://json.org/ http://json.org/
- brnstz 15y ago> JSON is popular precisely because it doesn't try to solve any non-problems. This reminds me of Erik Naggum's XML rant: http://www.schnada.de/grapt/eriknaggum-xmlrant.html http://www.schnada.de/grapt/eriknaggum-xmlrant.html "If a solution is much smarter than the problem and really stupid people notice it, they believe they have got their hands on something /great/, and so they destroy it . . ."