Chapter 2 — Organizing Data in JSON
A JSON object represents a collection of related data using key–value pairs. Objects are commonly used to represent real-world entities such as users, products, or records. Keys must be strings, while values can be any valid JSON data type.
Example: JSON object
{
"book": {
"title": "JSON Basics",
"author": "Jane Doe",
"pages": 250
}
}Here, the object book contains multiple properties describing the book.