wood burning stoves*
The moose likes HTML, CSS and JavaScript and the fly likes Doubt regarding understanding of JSON. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Doubt regarding understanding of JSON." Watch "Doubt regarding understanding of JSON." New topic
Author

Doubt regarding understanding of JSON.

Monica. Shiralkar
Ranch Hand

Joined: Jul 07, 2012
Posts: 594
I am new to JSON and have read about it on various websites. Below is my undestanding:
-It is key value pair and each value can itself have key value pair and so on.
-If we construct a JSON array from an arrayList then the name of arrayList becomes the key of JSON and the value becomes key value pairs for each property the object is made up of. For example if the arrayList was an arrayList names myArrayList of User objects and User properties are userId and userName then:

key of JSON will be myArrayList
value will be again combination of key value pairs example ( userId,1) ,( userName, Tom).

Please correct me if any of the above is wrong?
 
jQuery in Action, 2nd edition
 
subject: Doubt regarding understanding of JSON.
 
Similar Threads
how to do this with hashtable
Struts tag to obtain size of a Collection
all properties of domain class USER get displayed in JSP correctly but the userID does not display.
itrating through an arraylist
unable to pass value of resultset to servlet to jsp