Home > DeveloperSection > Interviews > Why Use JSON over XML

Posted on    June-06-2013 8:02 AM

 1 Answer(s)
  1788  View(s)
Rate this:


Total Post:257

Posted on    June-06-2013 12:00 AM

Lighter and faster than XML as on-the-wire data format

JSON objects are typed while XML data is typeless
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

Don't want to miss updates? Please click the below button!

Follow MindStick