JSON Examples

Sample JSON data for learning and testing.

Simple Object

{
  "name": "John Doe",
  "age": 30,
  "email": "john@example.com"
}

Nested Object

{
  "user": {
    "id": 1,
    "name": "Jane Smith",
    "address": {
      "street": "123 Main St",
      "city": "New York",
      "country": "USA"
    }
  }
}

Array of Objects

{
  "products": [
    { "id": 1, "name": "Laptop", "price": 999.99 },
    { "id": 2, "name": "Phone", "price": 599.99 },
    { "id": 3, "name": "Tablet", "price": 399.99 }
  ]
}

Common Use Cases

API Responses

Format and debug API response data.

Configuration Files

Validate package.json and config files.

Data Export

Format data exports for readability.

Documentation

Prepare JSON examples for docs.