This template produces 10 products. Each one has a unique SKU, a product name, a short description, a material, a department, a price, a stock count between 0 and 500, an image URL and an ISBN. The name, material and department are generated separately, so they do not necessarily match each other.
Open in JSON GeneratorPaste this into the JSON Generator to produce data like the sample below.
{
"products": [
"repeat(10)",
{
"sku": "guid()",
"name": "productName()",
"description": "productDescription()",
"material": "productMaterial()",
"department": "department()",
"price": "price()",
"inStock": "int(0,500)",
"image": "image()",
"isbn": "isbn()"
}
]
}| Field | Template | What it generates |
|---|---|---|
products[] | repeat(10) | An array of 10 items |
products[].sku | guid() |
|
products[].name | productName() |
|
products[].description | productDescription() |
|
products[].material | productMaterial() |
|
products[].department | department() |
|
products[].price | price() |
|
products[].inStock | int(0,500) |
|
products[].image | image() |
|
products[].isbn | isbn() |
|
The first 2 items of each list from one run of the template. Every click on Generate produces new data.
{
"products": [
{
"sku": "615eb844-23cf-4996-a642-183c4b57cb9a",
"name": "Awesome Aluminum Keyboard",
"description": "Featuring Bismuth-enhanced technology, our Pants offers unparalleled interesting performance",
"material": "Granite",
"department": "Jewelry",
"price": "827.90",
"inStock": 115,
"image": "https://picsum.photos/seed/o9AV8hLj4/1905/1624",
"isbn": "978-0-04-426964-9"
},
{
"sku": "7d8c53a4-d800-4708-9cf9-09bb0fed66f6",
"name": "Modern Bamboo Soap",
"description": "Introducing the Saint Kitts and Nevis-inspired Car, blending pertinent style with local craftsmanship",
"material": "Silk",
"department": "Books",
"price": "636.45",
"inStock": 415,
"image": "https://picsum.photos/seed/MAx0pFiC2/2088/3602",
"isbn": "978-1-316-05982-1"
}
]
}More sample data: User profiles, E-commerce orders, 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.