JSON Samples

Select a sample JSON to try in the viewer

Simple Object

A basic JSON object with different data types

{
  "name": "John Doe",
  "age": 30,
  "isActive": true,
  "hobbies": [
    "reading",
    "swimming",
    "coding"
  ],
  "address": {
    "street": "123 Main St",
    "city": "Anytown",
    "zipCode": "12345"
  }
}

Nested Arrays

JSON with nested arrays and mixed data types

{
  "teamMembers": [
    {
      "name": "Alice",
      "role": "Developer",
      "skills": [
        "JavaScript",
        "React",
        "Node.js"
      ]
    },
    {
      "name": "Bob",
      "role": "Designer",
      "skills": [
        "Figma",
        "Photoshop",
        "Illustrator"
      ]
    },
    {
      "name": "Charlie",
      "role": "Manager",
      "skills": [
        "Leadership",
        "Planning",
        "Communication"
      ]
    }
  ],
  "projects": [
    {
      "id": 1,
      "name": "Website Redesign",
      "status": "In Progress"
    },
    {
      "id": 2,
      "name": "Mobile App",
      "status": "Completed"
    },
    {
      "id": 3,
      "name": "API Integration",
      "status": "Planning"
    }
  ]
}

Complex Structure

A complex nested JSON structure with multiple levels

{
  "company": {
    "name": "Tech Innovations Inc.",
    "founded": 2010,
    "location": {
      "country": "United States",
      "city": "San Francisco",
      "address": {
        "street": "100 Technology Park",
        "building": "Building A",
        "floor": 4
      }
    },
    "departments": [
      {
        "name": "Engineering",
        "employees": [
          {
            "id": 101,
            "name": "Jane Smith",
            "position": "Lead Engineer",
            "projects": [
              1,
              3,
              5
            ]
          },
          {
            "id": 102,
            "name": "Mike Johnson",
            "position": "Frontend Developer",
            "projects": [
              1,
              2
            ]
          }
        ]
      },
      {
        "name": "Marketing",
        "employees": [
          {
            "id": 201,
            "name": "Sarah Brown",
            "position": "Marketing Director",
            "campaigns": [
              "Summer Sale",
              "Product Launch"
            ]
          },
          {
            "id": 202,
            "name": "Tom Davis",
            "position": "Social Media Specialist",
            "platforms": [
              "Instagram",
              "Twitter",
              "Facebook"
            ]
          }
        ]
      }
    ],
    "metrics": {
      "revenue": {
        "year2021": 1500000,
        "year2022": 1800000,
        "year2023": 2200000
      },
      "employees": {
        "year2021": 45,
        "year2022": 52,
        "year2023": 63
      }
    }
  }
}

Unformatted JSON

A minified JSON string that demonstrates the formatter feature

{"type":"FeatureCollection","features":[{"type":"Feature","properties":{"name":"Eiffel Tower","height":330,"built":1889,"type":"landmark"},"geometry":{"type":"Point","coordinates":[2.2945,48.8584]}},{"type":"Feature","properties":{"name":"Louvre Museum","visitors":10200000,"built":1793,"type":"museum"},"geometry":{"type":"Point","coordinates":[2.3376,48.8606]}},{"type":"Feature","properties":{"name":"Notre-Dame Cathedral","built":1345,"renovated":2024,"type":"religious"},"geometry":{"type":"Point","coordinates":[2.3499,48.8529]}},{"type":"Feature","properties":{"name":"Arc de Triomphe","height":50,"built":1836,"type":"monument"},"geometry":{"type":"Point","coordinates":[2.295,48.8738]}},{"type":"Feature","properties":{"name":"Champs-Élysées","length":1.9,"type":"avenue"},"geometry":{"type":"LineString","coordinates":[[2.307,48.8674],[2.295,48.8738]]}}],"metadata":{"title":"Paris Landmarks","author":"JSON Viewer Example","version":"1.0","date":"2023-07-15","tags":["paris","tourism","landmarks"],"description":"Geographic data of famous landmarks in Paris, France"}}