Please note that JSON (JavaScript object designation) is an easy data exchange format, and XML (extensible markup language) is a set of rules for encoding documents electronically.
XML, therefore, is not a format, but a “protocol” for encoding different formats: XSLT, RSS, SOAP, RDF / XML and XHTML, just to name a few. Recently, JSON has become more popular as an exchange format mainly in web services, but the XML area is much wider. I would also say that the role of XML is key to the development of the semantic network .
source
share