• Post Reply Bookmark Topic Watch Topic
  • New Topic

Doubt regarding understanding of JSON.

Monica Shiralkar
Ranch Hand
Posts: 874
  • 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?
my overalls have superpowers - they repel people who think fashion is important. Tiny ad:
the new thread boost feature brings a LOT of attention to your favorite threads
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!