I think there must be some significant difference between XML and JSON .. I referred these two links (https://stackoverflow.com/questions/21817156/alternative-to-xml-and-json) and these links (JSON alternatives (for the purpose of specifying configuration)?) gave me some ideas . This question is asked by my interviewer and he said that your assumptions were wrong. And he didn't told me the actual answer . Really is there any significant difference .
Asked
Active
Viewed 424 times
1
-
You will probably find [this](https://www.udemy.com/blog/json-vs-xml/) article helpful. – Benedict Lewis Feb 26 '14 at 05:58
-
The biggest difference is that JSON is designed for data, XML is designed for documents. – Michael Kay Feb 26 '14 at 08:53
2 Answers
1
No way,both have their own features and one is suitable over the other depending on the place where they will be used.
See this answer, it will clear your doubt hopefully.
https://stackoverflow.com/a/4862530/2035885
https://stackoverflow.com/questions/3536893/what-are-the-pros-and-cons-of-xml-and-json

Community
- 1
- 1

Bette Devine
- 1,196
- 1
- 9
- 23