PAD Showcase
All tags/JSON viewer

An API response

The JSON between the tags, its braces needing no ignore - two levels open, the deeper ones folded with the number of keys or items they hold.

1 The tag jsonview/api.pad pad
{jsonview title='GET /api/orders/10417'}
  {
    "id": 10417,
    "status": "open",
    "paid": false,
    "customer": { "name": "Euro+ Shopping", "country": "ES", "vip": true },
    "lines": [
      { "sku": "S18_1749", "name": "1917 Grand Touring Sedan", "qty": 2, "price": 136.0 },
      { "sku": "S24_2840", "name": "1958 Chevy Corvette", "qty": 6, "price": 35.29 }
    ],
    "coupon": null,
    "total": 2975.75,
    "created": "2026-10-08T09:42:11Z"
  }
{/jsonview}
2 The result rendered on the server
GET /api/orders/10417 {…} 8 keys
  • "id": 10417
  • "status": "open"
  • "paid": false
  • "customer": {…} 3 keys
    • "name": "Euro+ Shopping"
    • "country": "ES"
    • "vip": true
    }
  • "lines": […] 2 items
    • 0: {…} 4 keys
      • "sku": "S18_1749"
      • "name": "1917 Grand Touring Sedan"
      • "qty": 2
      • "price": 136
      }
    • 1: {…} 4 keys
      • "sku": "S24_2840"
      • "name": "1958 Chevy Corvette"
      • "qty": 6
      • "price": 35.29
      }
    ]
  • "coupon": null
  • "total": 2975.75
  • "created": "2026-10-08T09:42:11Z"
}