Hi, I want to split this list at every fifth element to create some sort of a table which I will need to search and filter later on.
I searched the fourms but could’nt find a solution.
{
"data": [
"D001",
"customer 1",
"A1",
"1",
"$ 1,500.00",
"D002",
"customer 2",
"B2",
"2",
"$ 1,609.00",
"D003",
"customer 3",
"B1",
"1",
"$ 4,517.00"
]
}
]
the result should be something like this
code | name | zone | count | total |
---|---|---|---|---|
D001 | customer 1 | A1 | 1 | $1,500.00 |
D002 | customer 2 | B2 | 2 | $1,609.00 |
D003 | customer 3 | B1 | 1 | $4,517.00 |