• Post Reply Bookmark Topic Watch Topic
  • New Topic

Doubt regarding understanding of JSON.  RSS feed

Monica Shiralkar
Ranch Hand
Posts: 921
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!