Why Use JSON over XML
3509
06-Jun-2013
AVADHESH PATEL
06-Jun-2013Lighter and faster than XML as on-the-wire data format
JSON types: string, number, array, boolean,
XML data are all string
Native data form for JavaScript code
Data is readily accessible as JSON objects in your JavaScript
code vs. XML data needed to be parsed and assigned to variables through tedious DOM APIs
Retrieving values is as easy as reading from an object property in your JavaScript code