This template produces 5 flight bookings. Each booking has a record locator, a passenger name, an airline, a flight number, an aircraft type, departure and arrival airports, a seat and a departure date in 2025. The departure and arrival airports are picked independently, so they can occasionally be the same airport.
Open in JSON GeneratorPaste this into the JSON Generator to produce data like the sample below.
{
"bookings": [
"repeat(5)",
{
"recordLocator": "recordLocator()",
"passenger": "firstName() lastName()",
"airline": "airline()",
"flightNumber": "flightNumber()",
"aircraft": "aircraftType()",
"from": "airport()",
"to": "airport()",
"seat": "seat()",
"departure": "date(2025-01-01, 2025-12-31)"
}
]
}| Field | Template | What it generates |
|---|---|---|
bookings[] | repeat(5) | An array of 5 items |
bookings[].recordLocator | recordLocator() |
|
bookings[].passenger | firstName() lastName() |
|
bookings[].airline | airline() |
|
bookings[].flightNumber | flightNumber() |
|
bookings[].aircraft | aircraftType() |
|
bookings[].from | airport() |
|
bookings[].to | airport() |
|
bookings[].seat | seat() |
|
bookings[].departure | date(2025-01-01, 2025-12-31) |
|
The first 2 items of each list from one run of the template. Every click on Generate produces new data.
{
"bookings": [
{
"recordLocator": "ZCYBHD",
"passenger": "Chesley Welch",
"airline": {
"name": "Egyptair",
"iataCode": "MS"
},
"flightNumber": "5118",
"aircraft": "widebody",
"from": {
"name": "Dallas Fort Worth International Airport",
"iataCode": "DFW"
},
"to": {
"name": "Adolfo Suarez Madrid-Barajas Airport",
"iataCode": "MAD"
},
"seat": "26E",
"departure": "2025-04-19T22:17:19.461Z"
},
{
"recordLocator": "EJPKKP",
"passenger": "Zackary Hamill",
"airline": {
"name": "Sun Country Airlines",
"iataCode": "SY"
},
"flightNumber": "2914",
"aircraft": "narrowbody",
"from": {
"name": "Adelaide International Airport",
"iataCode": "ADL"
},
"to": {
"name": "Rio de Janeiro Galeao International Airport",
"iataCode": "GIG"
},
"seat": "13F",
"departure": "2025-12-23T15:53:46.789Z"
}
]
}More sample data: User profiles, E-commerce orders, Product catalog, Addresses, 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.