JSON is best compared to XML
XML is not well suited for data exchange
Simplicity
XML is simpler than SGML, but JSON is much simpler than XML. JSON has a much smaller grammar and more directly displays the data structures used in modern programming languages.
extensibility
JSON is not extensible because it is not necessary. JSON is not a document markup language, so there is no need to define new tags or attributes to represent data in it.
Interoperability
JSON has the same interoperability as XML.
Openness
JSON is at least as open as XML, perhaps more so because it is not at the center of the battle against corporate / political standardization.
Weight: Since JSON syntax requires fewer characters, it is lighter on the explorer than XML.
But still it depends on the requirements!
Azhar shaikh
source share