API / Web services
Why JSON is preferred over XML?
JSON parsing is faster than XML parsing.
JSON is a more compact and weigh less on the wire than the more verbose XML.
Formatted JSON is easily readable than formatted XML.
Easier to represent a null value in JSON.
JSON is easily consumed by JavaScript.
JSON is transportation-independent, you may bypass the XMLHttpRequest object for getting your data.
JSON object can hold functions (JavaScript for example) as well in addition to data.
More Related questions...