Tuesday 2 December 2008

JSON

JSON (JavaScript Object Notation) is a lightweight data-interchange format
  • It is easy for humans to read and write.
  • It is easy for machines to parse and generate. 
Example:

XML string:


Same data represented by JSON:

{"menu": { "id": "file", "value": "File", "popup": { "menuitem": [ {"value": "New", "onclick": "CreateNewDoc()"}, {"value": "Open", "onclick": "OpenDoc()"}, {"value": "Close", "onclick": "CloseDoc()"} ] } }}
More Info:

No comments: