JSON Object

An unordered collection of key/value pairs, enclosed in curly braces {}. Each key must be a string and is followed by a colon.

Objects are the primary way to structure and group related data in JSON. They allow you to represent a single entity and its attributes, like a user with a name, an email, and an ID. The keys within an e must be unique.

Example

This object represents a simple product, with attributes for its name, price, and availability.

{
  "productName": "Wireless Mouse",
  "price": 29.99,
  "inStock": true
}