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
}
Sample file: Empty JSON object {}
Empty JSON object {}
2 bytes
↓
Sample file: Empty JSON array []
Empty JSON array []
2 bytes
↓
Sample file: Simple JSON object (user profile)
Simple JSON object (user profile)
563 bytes
↓
Sample file: JSON array of 10 objects
JSON array of 10 objects
1 Kb
↓
Sample file: Deeply nested JSON (5 levels)
Deeply nested JSON (5 levels)
1 Kb
↓
Sample file: Large JSON: 1500 records
Large JSON: 1500 records
452 Kb
↓
Sample file: JSON with Unicode: emoji, CJK, Arabic, Hebrew, Cyrillic, special chars
JSON with Unicode: emoji, CJK, Arabic, Hebrew, Cyrillic, special chars
2 Kb
↓
Sample file: JSON edge cases: numbers, null, empty keys, duplicate keys, special values
JSON edge cases: numbers, null, empty keys, duplicate keys, special values
11 Kb
↓
Sample file: JSON with long string (~14 Kb in one field)
JSON with long string (~14 Kb in one field)
13 Kb
↓
Sample file: JSON with 100 levels of nesting
JSON with 100 levels of nesting
31 Kb
↓
Sample file: JSON with UTF-8 BOM (Byte Order Mark)
JSON with UTF-8 BOM (Byte Order Mark)
130 bytes
↓
Sample file: NDJSON / JSON Lines (50 log records, one JSON object per line)
NDJSON / JSON Lines (50 log records, one JSON object per line)
8.5 Kb
↓

🧠 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.

📝 UTF-8 Text no headers no magic bytes { } object { } key: value nesting [ ] array [ ] ordered list of values 🔤 6 value types string, number bool, null object, array 💾 .json ready file