JSON is widely used in web APIs to exchange data between servers and client applications. When a user interacts with a website or mobile application, data is often sent and received in JSON format because it is lightweight and easy to process.

Example: API response

{
  "status": "success",
  "user": {
    "id": 101,
    "name": "Alice"
  }
}

This example represents a typical response returned by an API.