Basic Data structurs in JSON
Basically, there are only two types of data structures in JSON 1. Arrays : list of things e.g: ["a","b","c"] 2. Dictionaries : Associative maps or key value pair e.g: {"a"=>"2","b"=>"4","c"=>"43"...} So, in JSON, we mainly have these types arrays , dictionaries, and combination of arrays & dictionaries So some of the common JSON examples may be : : {} : ["a","b","c"] (arrays) : {"a":"2","b":"4","c":"43"} (dictionaries) : ["a","b","c":{"name":"rroxy","age":"23"}] (combn of arrays & dictionaries) : {"a":"2","b":"4","c":["2","4","6"]} (combn of arrays & dictionaries) & so on ....