Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

JSON and XML have two totally different application domains. For some XML is better for some JSON. People who think JSON is better never had a problem with changing data schemas, different parties and common interface.

In short XML is a lot more powerful than simple JSON. JSON is a subset of XML with a different syntax.



I like XML for streams of data or for data that has to be stored for a long time (like logs). I like JSON for everything else.


How is XML any more immune to schema changes?


Is not immune, but you have an explicit contract in the form of a XML Schema Definition (XSD).


XSD is not part of XML, it's a totally separate specification. JSON likewise has schema specifications like JSON Schema.

Also, Protocol Buffers are by far better a better schema language than XSD.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: