This template produces a list of 5 to 10 user accounts. Each user has a unique ID, a first and last name, a username built from those two names, an email address on gmail.com or example.com, a random password, a phone number, an active flag, a creation date between 2020 and 2025, and a nested address. Open it in the generator to change the fields or the number of users.
Open in JSON GeneratorPaste this into the JSON Generator to produce data like the sample below.
{
"users": [
"repeat(5,10)",
{
"id": "guid()",
"firstName": "firstName()",
"lastName": "lastName()",
"username": "this.firstName-this.lastName",
"email": "email(gmail.com, example.com)",
"password": "password()",
"phone": "phoneNumber()",
"active": "enum(true, false)",
"createdAt": "date(2020-01-01, 2025-12-31)",
"address": {
"street": "street()",
"city": "city()",
"country": "country()"
}
}
]
}| Field | Template | What it generates |
|---|---|---|
users[] | repeat(5,10) | An array of 5–10 items |
users[].id | guid() |
|
users[].firstName | firstName() |
|
users[].lastName | lastName() |
|
users[].username | this.firstName-this.lastName | Built from other fields in the same record |
users[].email | email(gmail.com, example.com) |
|
users[].password | password() |
|
users[].phone | phoneNumber() |
|
users[].active | enum(true, false) |
|
users[].createdAt | date(2020-01-01, 2025-12-31) |
|
users[].address.street | street() |
|
users[].address.city | city() |
|
users[].address.country | country() |
|
The first 2 items of each list from one run of the template. Every click on Generate produces new data.
{
"users": [
{
"id": "978cb6f8-aa3e-4ff5-8e46-32c05d633cef",
"firstName": "Cortney",
"lastName": "Rogahn",
"username": "Cortney-Rogahn",
"email": "Mervin68@gmail.com",
"password": "pI9Edd09rerx2Ta",
"phone": "964.537.2419",
"active": true,
"createdAt": "2020-02-08T17:27:25.912Z",
"address": {
"street": "53217 Will Fall",
"city": "Beahanfurt",
"country": "Republic of Korea"
}
},
{
"id": "1902c080-e138-42cc-b7e6-1147fb7eedf6",
"firstName": "Jarod",
"lastName": "Kuhlman",
"username": "Jarod-Kuhlman",
"email": "Timmy.McCullough@gmail.com",
"password": "ldep5a889cTkOwZ",
"phone": "1-294-345-2126 x3977",
"active": true,
"createdAt": "2025-11-24T23:23:25.810Z",
"address": {
"street": "650 Tressie Loaf",
"city": "Brennonstad",
"country": "Micronesia"
}
}
]
}More sample data: E-commerce orders, Product catalog, Addresses, Flight bookings, Network logs, Employee directory.
See the template tag reference for every tag, browse all examples, or turn your generated data into a contract with the JSON Schema Generator.