Sample JSON Files
JSON (JavaScript Object Notation) is a lightweight data interchange format. Below are sample JSON files of various structures and edge cases available for download
JSON File Example
This is sample-simple.json: an object with a nested address, arrays, numbers, booleans and null. Handy for a quick parser check or as an example in your docs.
{
"id": 1,
"firstName": "John",
"lastName": "Doe",
"email": "john.doe@example.com",
"age": 32,
"isActive": true,
"balance": 1250.75,
"address": {
"street": "123 Main St",
"city": "Springfield",
"state": "IL",
"zip": "62701",
"country": "US"
},
"phoneNumbers": [
{
"type": "home",
"number": "+1-555-0100"
},
{
"type": "work",
"number": "+1-555-0200"
}
],
"tags": [
"developer",
"blogger",
"open-source"
],
"createdAt": "2024-01-15T09:30:00Z",
"updatedAt": null
}
🧠 How JSON Works
JSON is a text-based data interchange format (RFC 8259). Only 6 value types, strict syntax: strings only in double quotes, no comments, no trailing commas. Encoding is always UTF-8. Equally easy to read for humans and machines.
