JSON: Difference between revisions

[pending revision][pending revision]
Content deleted Content added
No edit summary
 
Typo correction
Line 1:
'''JSON''', which stands for "[[JavascriptJavaScript]] object notation", is a lightweight data interchange format.
 
== JSON and JavascriptJavaScript ==
Unlike many [[Objectobject-oriented programming language]]s, [[Javascript]]JavaScript objects do not necessarily have to be created by a [[constructor]]. [[Javascript]]JavaScript objects can be created by an [[object literal]] format. For example:
 
my_object =
Line 12:
};
 
This produces a JavascriptJavaScript object named "my_object" with ''fields'': "name", "address", "city", "province", and "country". One could use this object as follows:
 
document.write("My name is "+my_object.name+".\n");
Line 22:
And I live on 123 Somewhere Street in Surrey.
 
'''JSON''' is a JavascriptJavaScript object literal.