I am reading the debate over JSON and XML
And i am not sure why JSON seems to have come out of nowhere to threaten precious XML
And one of the point mentioned is
JSON is a better fit for Web services that power Web mashups and AJAX widgets due to the fact that it is essentially serialized Javascript objects. That’s it. XML will never fit the bill as well for these scenarios without changes to the existing browser ecosystem which I doubt are forthcoming anytime soon.
Could you please tell me what is the exact meaning of this ??
In really short: It is simpler to use JSON than XML in a lot of scenarios (because it consists of serialized JS objects just as you said) and also it provides faster data transfer over the network (and that comes from the not so or less redundant data structures of it, compared to XML).
Regards, Peter