Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Doubt regarding understanding of JSON.

 
Monica Shiralkar
Ranch Hand
Posts: 873
1
  • 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?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic