Object

An object is a data structure that holds information about something, like a person or a product. It has details, such as a name and age, that describe it.

Objects consist of key/value pairs. A key is a unique name that identifies a property, while the value is the information related to that property. For example, in a customer object:

{
  "name": "Emmah",
  "phone": "123-456-7890",
  "email": "emmah@example.com"
}

Here, “name,” “phone,” and “email” are keys, and their corresponding values are “Emmah,” “123-456-7890,” and “emmah@example.com.”

You could also have an order object like this:

{
  "customer": "Linda",
  "item": "Laptop",
  "orderDate": "2025-02-10"
}

Objects are used to organize specific details about a single item, making it easier to manage information in your scenario.