WHY USE JSON OVER XML

AVADHESH PATEL

Total Post:257

Points:1285
Posted by  AVADHESH PATEL
JSON 
 1859  View(s)
Ratings:
Rate this:
  1. AVADHESH PATEL

    Post:257

    Points:1285
    Why Use JSON over XML

    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

Answer

NEWSLETTER

Enter your email address here always to be updated. We promise not to spam!