Having trouble figuring out how to accomplish this task,
I have a JSON file containing a restaurant menu card, and I want to display this data in a table. However, the menu card has multiple headers (like 'starters', 'main course', 'whisky', ...) with only the name and price of each item listed.
Parsing the JSON is not an issue, but structuring it into a table is proving challenging.
This is a snippet from my JSON:
{
"Drinks": [
{
"Beers vessel": [
{
"Name": "Jupiler / 33cl / 50cl",
"Price": "2.00 / 2.60 / 4.00"
},
...
],
...
],
...
}
}
I am open to suggestions both in JavaScript and PHP.
Thank you!