Skip to content

json

June 28, 2008

two concepts

name value pair –

{“a” : “b”}

{ } curly used for one key/value rep

[ ] square used for array of values like [ {‘a’:’a2′} {‘b’:’b2′} ]

Then, JSONObject and JSONArray classes – simple. I read you can also have function – scoped definition existing in similar way like

var myScope =  {

           run: function  (){ //func definition },

          init: function () {  //func definition  }

};

can call like myScope.run();

http://www.dustindiaz.com/json-for-the-masses/

 

Advertisements
No comments yet

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: