Skip to content

Instantly share code, notes, and snippets.

@jojijacobk
Created December 1, 2024 15:22
Show Gist options
  • Save jojijacobk/9386034499926cec1ed685f33accd4ad to your computer and use it in GitHub Desktop.
Save jojijacobk/9386034499926cec1ed685f33accd4ad to your computer and use it in GitHub Desktop.
Sample JSON Structure for mocking food Items in e-commerce application
[
{
"id": 1,
"category": "Appetizers",
"name": "Bruschetta",
"description": "Grilled bread topped with diced tomatoes, garlic, and basil.",
"price": 6.99,
"image": "/images/bruschetta.jpg",
"customizations": {
"toppings": ["Extra Garlic", "Parmesan Cheese", "Olives"],
"instructions": ""
}
},
{
"id": 2,
"category": "Appetizers",
"name": "Caesar Salad",
"description": "Crisp romaine lettuce with Caesar dressing, croutons, and Parmesan.",
"price": 7.99,
"image": "/images/caesar-salad.jpg",
"customizations": {
"dressing": ["Extra Dressing", "No Dressing"],
"toppings": ["Grilled Chicken", "Anchovies"],
"instructions": ""
}
},
{
"id": 3,
"category": "Main Courses",
"name": "Margherita Pizza",
"description": "Classic pizza with tomato sauce, mozzarella, and basil.",
"price": 12.99,
"image": "/images/margherita-pizza.jpg",
"customizations": {
"size": ["Small", "Medium", "Large"],
"toppings": ["Extra Cheese", "Pepperoni", "Mushrooms"],
"instructions": ""
}
},
{
"id": 4,
"category": "Main Courses",
"name": "Grilled Chicken Alfredo",
"description": "Fettuccine pasta with creamy Alfredo sauce and grilled chicken.",
"price": 14.99,
"image": "/images/chicken-alfredo.jpg",
"customizations": {
"sauce": ["Extra Sauce", "No Sauce"],
"toppings": ["Broccoli", "Mushrooms"],
"instructions": ""
}
},
{
"id": 5,
"category": "Main Courses",
"name": "Beef Lasagna",
"description": "Layers of pasta with beef, cheese, and tomato sauce.",
"price": 13.99,
"image": "/images/beef-lasagna.jpg",
"customizations": {
"cheese": ["Extra Cheese", "No Cheese"],
"instructions": ""
}
},
{
"id": 6,
"category": "Main Courses",
"name": "Fish and Chips",
"description": "Battered fish with crispy fries and tartar sauce.",
"price": 11.99,
"image": "/images/fish-and-chips.jpg",
"customizations": {
"sides": ["Extra Fries", "Coleslaw"],
"instructions": ""
}
},
{
"id": 7,
"category": "Desserts",
"name": "Tiramisu",
"description": "Coffee-flavored Italian dessert.",
"price": 5.99,
"image": "/images/tiramisu.jpg",
"customizations": {
"toppings": ["Extra Cocoa", "Whipped Cream"],
"instructions": ""
}
},
{
"id": 8,
"category": "Desserts",
"name": "Chocolate Fondant",
"description": "Warm chocolate cake with a molten center.",
"price": 6.99,
"image": "/images/chocolate-fondant.jpg",
"customizations": {
"sides": ["Vanilla Ice Cream", "Fresh Berries"],
"instructions": ""
}
},
{
"id": 9,
"category": "Desserts",
"name": "Cheesecake",
"description": "Creamy cheesecake with a graham cracker crust.",
"price": 6.49,
"image": "/images/cheesecake.jpg",
"customizations": {
"toppings": ["Strawberry Sauce", "Whipped Cream"],
"instructions": ""
}
},
{
"id": 10,
"category": "Appetizers",
"name": "Garlic Bread",
"description": "Toasted garlic bread with herbs and butter.",
"price": 4.99,
"image": "/images/garlic-bread.jpg",
"customizations": {
"toppings": ["Cheese", "Herbs"],
"instructions": ""
}
}
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment