Why must one use JSON over XML?
1) It is faster and lighter than XML as on the wire data format
2) XML data is typeless while JSON objects are typed
3) JSON types: Number, Array, Boolean, String
4) XML data are all string
5) Data is readily available as JSON object is in your JavaScript
6) Fetching values is as simple as reading from an object property in your JavaScript code
json-logo