Generic · Databeginner
Sample JSON Data (Employees, Students, Products)
Ready-to-copy sample JSON data for testing: employees with departments, students with grades, and products with nested variants. Covers every JSON type: strings, numbers, booleans, null, nested objects, arrays and ISO dates.
sample jsontest dataemployee jsonstudent jsonmock dataarray of objects
Preview
{
"departments": [
{
"id": "ENG",
"name": "Engineering",
"location": "Bengaluru"
},
{
"id": "SAL",
"name": "Sales",
"location": "London"
},
{
"id": "HR",
"name": "People",
"location": "New York"
}
],
"employees": [
{
"id": 1001,
"name": "Asha Rao",
"email": "[email protected]",
"department": "ENG",
"title": "Engineering Manager",
"salary": 145000,
"currency": "USD",
"isActive": true,
"hiredAt": "2019-04-01",
"manager": null,
"skills": [
"go",
"kubernetes",
"hiring"
],
"address": {
"city": "Bengaluru",
"country": "IN",
"postalCode": "560001"
}
},
{
"id": 1002,
"name": "Daniel Okafor",
"email": "[email protected]",
"department": "ENG",
"title": "Senior Software Engineer",
"salary": 128000,
"currency": "USD",
"isActive": true,
"hiredAt": "2021-09-13",
"manager": 1001,
"skills": [
"typescript",
"react",
"postgres"
],
"address": {
"city": "Lagos",
"country": "NG",
"postalCode": "100001"
}
},
{
"id": 1003,
"name": "Mia Fischer",
"email": "[email protected]",
"department": "SAL",
"title": "Account Executive",
"salary": 92000,
"currency": "USD",
"isActive": false,
"hiredAt": "2022-01-10",
"manager": null,
"skills": [
"negotiation",
"crm"
],
"address": {
"city": "London",
"country": "GB",
"postalCode": "EC1A 1BB"
}
}
],
"students": [
{
"id": "S-001",
"name": "Liam Chen",
"age": 20,
"enrolledAt": "2024-08-26T09:00:00Z",
"course": "Computer Science",
"grades": {
"math": 91,
"physics": 84,
"programming": 97
},
"scholarship": true
},
{
"id": "S-002",
"name": "Priya Nair",
"age": 19,
"enrolledAt": "2025-08-25T09:00:00Z",
"course": "Economics",
"grades": {
"math": 78,
"statistics": 88,
"writing": 92
},
"scholarship": false
}
],
"products": [
{
"sku": "TSHIRT-BASIC",
"name": "Basic T-Shirt",
"price": 19.99,
"inStock": true,
"tags": [
"apparel",
"cotton"
],
"variants": [
{
"size": "M",
"color": "black",
"stock": 42
},
{
"size": "L",
"color": "white",
"stock": 0
}
]
},
{
"sku": "MUG-12OZ",
"name": "Ceramic Mug 12oz",
"price": 9.5,
"inStock": true,
"tags": [
"kitchen"
],
"variants": []
}
]
}AI actions
Documentation
Purpose
Give you realistic, valid JSON to test parsers, seed databases, mock APIs, fill Postman request bodies, or try out a dashboard tool like Power BI.
When to use
Whenever you need data that looks real but is not: unit tests, demos, UI prototypes, database imports, or learning how arrays of objects and nesting work.
Required fields
- A top-level object or array: valid JSON must have exactly one root value
- Double-quoted keys and strings: single quotes are not valid JSON
Optional fields
- employees: array of objects with id, name, email, department, salary, isActive, manager (null for top-level), skills (array), address (nested object)
- departments: lookup array referenced by employees[].department
- students: array with grades (object of subject → score) and enrolledAt (ISO 8601 date)
- products: array with price (number), tags (array) and variants (array of objects)
Best practices
- Keep ids unique and stable so related records (manager, department) can reference them.
- Store dates as ISO 8601 strings ("2024-03-15" or "2024-03-15T09:30:00Z"); JSON has no date type.
- Store money as a number of the smallest unit or as a number plus a currency field; never mix formats.
- Use null for "known to be empty" and omit the key for "not applicable".
- Use example.com / example.org email domains so test data can never reach a real inbox.
Security considerations
- Never copy production records into test fixtures; generate fake names, emails and phone numbers instead.
- Use reserved example domains (RFC 2606) and fake phone numbers in sample data.