JSON data is written as name/value pairs.
A name/value pair consists of a field name (in double quotes), followed by a colon, followed by a value:
In JSON, keys must be strings, written with double quotes:
In JSON, values must be one of the following data types:
In JSON, string values must be written with double quotes:
It can also be accessed like this:
Data can be modified like this:
It can also be modified like this:
You will learn more about arrays as JSON later in this tutorial.