Hey guys I have a little issue which I can't wrap my head around and can't seem to find any sources online to assist me.
I want to create a bus timetable which will be automatically populated in a word template.
My Current Array:
[
{
"Bus No": "434",
"Station": "FRATTON",
"Start Time": "23:38"
},
{
"Bus No": "434",
"Station": "PSEA",
"Start Time": "23:43"
},
{
"Bus No": "435",
"Station": "PHBR",
"Start Time": "06:33"
},
{
"Bus No": "435",
"Station": "PSEA",
"Start Time": "06:40"
},
{
"Bus No": "435",
"Station": "FRATTON",
"Start Time": "06:45"
}
]
My Desired Output As A HTML Table:
434 435
FRATTON 23:38
PSEA 23:43
PHBR 06:33
PSEA 06:40
FRATTON 06:45
One of the biggest issues I'm having is understanding what this HTML table would look like as an array and whether it is actually possible. With the flow there will be an unknow number of bus numbers and an unknown number of stations so the solution must be dynamic. Any help at all is greatly appreciated.