JSON Beautifier

Sample JSON Files

Seven free, valid JSON example files for testing APIs, parsers, converters and spreadsheets. Each one models a shape you meet in real work, uses fictional data, and is small enough to read in full. Download a file or copy it from the preview.

Users (array of objects)

users.json · 774 bytes

The most common API shape: a list of records with strings, numbers, booleans, null, an array field and ISO dates. Good for table, CSV and Excel exports. Convert to CSV.

[
  {
    "id": 1,
    "name": "Alice Johnson",
    "email": "[email protected]",
    "age": 34,
    "active": true,
    "roles": [
      "admin",
      "editor"
    ],
    "createdAt": "2026-01-15T09:30:00Z"
  },
  {
    "id": 2,
    "name": "Bob Smith",
    "email": "[email protected]",
    "age": 28,
    "active": false,
    "roles": [
      "viewer"
    ],
    "createdAt": "2026-02-03T14:12:00Z"
  },
  …

Products with nested dimensions

products.json · 852 bytes

Records that each contain a nested object, useful for testing how a tool flattens address.city style columns. Show as HTML table.

[
  {
    "sku": "KB-001",
    "name": "Mechanical Keyboard",
    "price": 89.99,
    "currency": "USD",
    "inStock": true,
    "stock": 42,
    "tags": [
      "keyboard",
      "usb-c"
    ],
    "dimensions": {
      "widthCm": 36,
      "depthCm": 13,
      "heightCm": 4
    }
  },
  {
    "sku": "MS-014",
    "name": "Wireless Mouse",
    "price": 24.5,
    "currency": "USD",
    "inStock": true,
  …

Nested order (single object)

nested-order.json · 698 bytes

A realistic e-commerce order with a customer, address, line items, payment and shipping. Use it to try a tree viewer or JSONPath queries. Query with JSONPath.

{
  "orderId": "ORD-2026-00042",
  "status": "shipped",
  "placedAt": "2026-11-02T10:15:00Z",
  "customer": {
    "id": 1,
    "name": "Alice Johnson",
    "address": {
      "line1": "12 High Street",
      "city": "London",
      "postcode": "SW1A 1AA",
      "country": "GB"
    }
  },
  "items": [
    {
      "sku": "KB-001",
      "quantity": 1,
      "unitPrice": 89.99
    },
    {
      "sku": "MS-014",
      "quantity": 2,
      "unitPrice": 24.5
  …

Paginated API response

api-response.json · 420 bytes

The data, meta and links envelope many REST APIs return. The records you usually want are inside data, not at the top level. Explore in the viewer.

{
  "data": [
    {
      "id": 101,
      "title": "Write release notes",
      "done": false
    },
    {
      "id": 102,
      "title": "Fix login redirect",
      "done": true
    }
  ],
  "meta": {
    "page": 1,
    "perPage": 2,
    "total": 57,
    "totalPages": 29
  },
  "links": {
    "self": "https://api.example.com/tasks?page=1",
    "next": "https://api.example.com/tasks?page=2",
    "prev": null
  }
  …

Application config

config.json · 535 bytes

A settings file of the kind apps read at startup: nested sections, numbers, feature flags and a list. Edit it and download a copy. Edit in the JSON editor.

{
  "name": "my-service",
  "version": "1.4.0",
  "environment": "production",
  "server": {
    "host": "0.0.0.0",
    "port": 8080,
    "timeoutMs": 30000
  },
  "database": {
    "host": "db.internal",
    "port": 5432,
    "name": "app",
    "pool": {
      "min": 2,
      "max": 10
    }
  },
  "features": {
    "search": true,
    "export": false,
    "betaDashboard": false
  },
  "logging": {
  …

A FeatureCollection with three Point features. Note that GeoJSON coordinates are [longitude, latitude], not the other way round. Validate it.

{
  "type": "FeatureCollection",
  "features": [
    {
      "type": "Feature",
      "properties": {
        "name": "Eiffel Tower",
        "city": "Paris"
      },
      "geometry": {
        "type": "Point",
        "coordinates": [
          2.2945,
          48.8584
        ]
      }
    },
    {
      "type": "Feature",
      "properties": {
        "name": "Statue of Liberty",
        "city": "New York"
      },
      "geometry": {
  …

Every JSON data type

all-types.json · 431 bytes

One of each: strings with unicode and escapes, integers, floats, an exponent, true, false, null, and empty or mixed objects and arrays. Handy for testing parsers and converters. Generate a schema.

{
  "string": "Hello, JSON",
  "emptyString": "",
  "unicode": "café ☕ 日本語",
  "escaped": "Line 1\nLine 2\t\"quoted\"",
  "integer": 42,
  "negative": -7,
  "float": 3.14159,
  "exponent": 6.022e+23,
  "booleanTrue": true,
  "booleanFalse": false,
  "nullValue": null,
  "emptyObject": {},
  "emptyArray": [],
  "mixedArray": [
    1,
    "two",
    false,
    null,
    {
      "five": 5
    },
    [
      6
  …

What makes a good JSON example

  • Keys in double quotes, no trailing commas and no comments. Every file here passes a strict parser.
  • Dates as ISO 8601 strings such as 2026-01-15T09:30:00Z, because JSON has no date type.
  • Identifiers that could have leading zeros, such as postcodes, stored as strings.
  • At least one null and one missing field, so code handles both.

To write your own, follow how to create a JSON file, then check it with the JSON validator. New to the format? Start with what is JSON.