📘 JSON Examples for Beginners

The best way to learn JSON is by looking at simple examples. Below are real-world JSON examples you can understand quickly.

👤 Example 1: Simple Object

{
  "name": "John",
  "age": 25,
  "city": "New York"
}

Object Represents a single person

🍎 Example 2: List of Fruits

{
  "fruits": ["Apple", "Banana", "Mango"]
}

Array A list of items

📦 Example 3: Array of Objects

{
  "products": [
    { "name": "Laptop", "price": 1000 },
    { "name": "Phone", "price": 500 }
  ]
}

Used in e-commerce apps

🧩 Example 4: Nested JSON

{
  "user": {
    "name": "John",
    "address": {
      "city": "San Jose",
      "zip": "95112"
    }
  }
}

Objects inside objects

📡 Example 5: API Response

{
  "status": "success",
  "data": [
    {
      "id": 1,
      "product": "Laptop",
      "price": 999
    }
  ]
}

Common in web APIs

⚙️ Example 6: Configuration File

{
  "appName": "MyApp",
  "version": "1.0",
  "debug": true,
  "maxUsers": 100
}

Used in settings and configs

✨ Example 7: Format JSON

Messy JSON:

{"name":"John","age":25,"city":"NY"}

Formatted JSON:

{
  "name": "John",
  "age": 25,
  "city": "NY"
}

👉 Use our tool to format your JSON instantly

🎯 Summary

  • Objects store single items
  • Arrays store lists
  • JSON can be nested
  • Used in APIs, apps, and configs

🚀 Try editing these examples in our JSON editor!