A mini tutorial:
JSON (RFC 4627) is short for JavaScript Object Notation and Google Chrome has no problem in handling JSON. Json as compared to XML has some good points. There are no versions of JSON and it does not need validation. You cannot extend it. Well it is a subset of JavaScript and there should not be any problem as long as JavaScript is enabled. Accessing within a defined object is lot easier than using ECMA as you need to do for XML.
Here are two examples of Json, an object and an array on Google Chrome.
Example of JSON Object:
Output:
Example of JSON Array:
Output:
JSON (RFC 4627) is short for JavaScript Object Notation and Google Chrome has no problem in handling JSON. Json as compared to XML has some good points. There are no versions of JSON and it does not need validation. You cannot extend it. Well it is a subset of JavaScript and there should not be any problem as long as JavaScript is enabled. Accessing within a defined object is lot easier than using ECMA as you need to do for XML.
Here are two examples of Json, an object and an array on Google Chrome.
Example of JSON Object:
Output:
Example of JSON Array:
Output:
No comments:
Post a Comment