JSON is based on two elements:
- A collection of name/value pairs
- An ordered list of values
JSON defines six types of values: null, numbers, strings, booleans, arrays and objects. Note that with regards to objects, the order of members is not significant, and the behaviour of a JSON parser when duplicate member names are encountered is undefined.