aspose file tools*
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: 644
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?
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Doubt regarding understanding of JSON.