I’m not sure how to name my question but right now I have an output:
{
"quantity": 1,
"totalprice": 20.00,
},
{
"quantity": 2,
"totalprice": 4.66,
}
{
"quantity": 1,
"totalprice": 19.00,
},
{
"quantity": 4,
"totalprice": 18.66,
}
But I would like to end with an output that’s like:
"order_items": [
{
"quantity": 1,
"totalprice": 20.00,
},
{
"quantity": 2,
"totalprice": 4.66,
}
{
"quantity": 1,
"totalprice": 19.00,
},
{
"quantity": 4,
"totalprice": 18.66,
}
]
How would I accomplish this ?