Java Script Object Notation (JSON)

Subset of the Java Script language Syntax is same as JavaScript object creation Example ( from w3shcools.com )

JSON Object Creation in JavaScript

Name:
Age:
Address:
Phone:

Other Notes: Much Like XML JSON is plain text JSON is "self-describing" (human readable) JSON is hierarchical (values within values) JSON can be parsed by JavaScript JSON data can be transported using AJAX Much Unlike XML No end tag Shorter Quicker to read and write Can be parsed using built-in JavaScript eval() Uses arrays No reserved words Why JSON? For AJAX applications, JSON is faster and easier than XML: Using XML Fetch an XML document Use the XML DOM to loop through the document Extract values and store in variables Using JSON Fetch a JSON string eval() the JSON string
Tags