The question is better to use?
In ajax, I use JSON and honestly I don’t understand why then XML?
What are the global differences apart from building ???
Previously, there was no
JSON , they used
XML , now many technologies support it as an alternative, many open
API also provide information in
XML . Here you have an article on this issue: JSON and XML. What's better? . The author spoke in detail about the differences in
UPD: With a link late ..
I work in support of banking software. It's all on xml. For the interaction of various services used SOAP-protocol. On the transition to JSON, even there are no thoughts.))) My opinion is to use what answers the tasks. If you see a solution with JSON, do it with JSON. This is easier to work on the client. If the task requires XML, use XML. For example, interaction with an external system through SOAP.
The fact is that it happened historically. The XML format was introduced by Microsoft and they immediately began to shove it into all their crafts. Moreover, as the pinnacle of creative thought. With all, it would seem, its "universality", it is very cumbersome to implement working with him and a very redundant format. The craft that the small-scale ones didn’t even bother to, at least somehow, properly comprehend and realize. JSON is a more compact and understandable format.