In JSON, your values are structured into two types of data objects: dictionaries and lists.
A dictionary is an unordered collection of values that each have a unique key, together called key/value pairs. In JSON, they look like {key1: value1, key2: value2, key3: value3}, and so on.
A list is simply an ordered collection of values. In JSON, they are comma-separated values surrounded in by brackets and look like [value1, value2, value3], and so on.
In both cases, you can set the values as text, numbers, Booleans [true or false], dictionaries, and lists.
JSON allows you to nest dictionary and list structures however you want. For example, you can nest a dictionary inside a dictionary or nest a list inside a dictionary. This allows you to model almost any structure of data, basic or complex, making JSON a powerful yet simple way to organize values as data objects.
For example, you can represent a person using a dictionary like:
{"first_name": "John", "last_name": "Appleseed", "age": 9}
Or, if you want a list of people, you can put the people dictionaries in a list like:
Note: For more information about the semantics of JSON, visit //www.json.org.