| Point where JSON is better then XML
Below are the 6 main points why JSON is better then XML
(1)JSON is much is faster and lighter than XML as on the wire data format in JSON
(2)JSON objects are typed on another place XML data is typeless
(3)Different JSON types are
(i) Number
(ii) Array
(iii)Boolean
(iv) String
(4)XML data are always 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 | | |