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:
JSON values can be:
JSON objects are written inside curly brackets,
Objects can contain multiple name/values pairs:
JSON arrays are written inside square brackets.
An array can contain multiple objects:
In the example above, the object "employees" is an array containing three objects. Each object is a record of a person (with a first name and a last name).
The returned content will be:
The data can be modified like this:
In the next chapter you will learn how to convert a JSON text to a
Your message has been sent to W3Schools.