Real-World JSON Samples for Testing
These practical JSON examples help developers test, format, and visualize data using a JSON Viewer or formatter.
Example 1: Payment API JSON
A typical JSON response from a payment or checkout service.
{
"paymentId": "PAY-90821",
"status": "success",
"method": "credit_card",
"currency": "USD",
"amount": 249.99,
"customerId": "CUST-4412",
"transactionRef": "TXN-778899",
"processedAt": "2026-01-11T08:45:30Z",
"refundable": true,
"gateway": "Stripe"
}Example 2: Books API JSON
JSON data returned from a book catalog or library API.
{
"bookId": "BK-1009",
"title": "Clean Code",
"author": "Robert C. Martin",
"category": "Programming",
"price": 39.99,
"currency": "USD",
"publishedYear": 2008,
"isbn": "978-0132350884",
"available": true,
"rating": 4.8
}Example 3: Database Record JSON
A JSON document stored in a NoSQL or document-based database.
{
"_id": "64f21ac91a",
"username": "sachin_dev",
"email": "user@example.com",
"role": "admin",
"isActive": true,
"loginCount": 42,
"lastLogin": "2026-01-10T22:14:09Z",
"createdAt": "2025-09-18T09:30:00Z",
"source": "web"
}Example 4: AWS EC2 Instance JSON
Simplified JSON describing an AWS EC2 virtual machine.
{
"instanceId": "i-0a12bc34de56f7890",
"instanceType": "t3.micro",
"state": "running",
"region": "us-east-1",
"availabilityZone": "us-east-1a",
"publicIp": "54.210.88.12",
"privateIp": "172.31.22.45",
"launchTime": "2026-01-05T06:20:10Z",
"platform": "Linux"
}Example 5: Azure Virtual Machine JSON
JSON configuration returned from an Azure VM management API.
{
"vmId": "vm-azure-9032",
"name": "prod-web-server",
"location": "eastus",
"vmSize": "Standard_B2s",
"osType": "Linux",
"powerState": "running",
"resourceGroup": "prod-resources",
"publicIp": "20.55.91.77",
"createdAt": "2026-01-02T11:40:00Z",
"provider": "Azure"
}Test These JSON Samples Instantly
Paste any of the above JSON examples into our online tool to format, validate, and explore structured data visually.
Try JSON Viewer → click here