For cross-platform compatibility, I like the fact that XML, XPath, XML Schema, XSLT and XHTML, etc. are standards defined and supported by W3. This includes a number of XML standards (UBL, GML, etc.). This gives you a high degree of confidence that when I use XML to exchange data between systems, I will get the expected results and that many standards exist to begin with.
Despite the fact that JSON is undoubtedly a more efficient XML solution, it has a wider range of capabilities. If I were creating one application, I would consider JSON. If I wanted to build a service-oriented architecture spanning many systems based on a standardized exchange format, then I would go with XML - as I know, this will cover almost all requirements. In many situations, this may be superfluous, but in the few where he was able to do something, JSON could not. I would be glad if I chose the heavyweight approach. If I were building one part of this architecture, I could curse that the architect chose XML when my needs were covered by JSON. But there will be a guy in the city who needs all of his namespaces and schemas to build his part.
source share