Hello experts!
So i have a JSON object in my app that is the result from converting a FormProcessor output (AI-builder) to JSON object:
{
"Fields": {
"Delivered": "5.00\n10.00\n3.00\n15.00\n22.00",
"Item number": "JP001\nJP002\nJP003\nJP004\nJP005",
"Requisition": "00003201"
}
}
What i would like to do now is to create a new json object for each "item number" and "delivered" that is in the output above. The amount of objects could differ depending the output from the FormProcessor. My expected outcome would be:
{
"Fields": {
"Delivered": "5.00",
"Item number": "JP001",
"Requisition": "00003201"
}
},
{
"Fields": {
"Delivered": "10.00",
"Item number": "JP002",
"Requisition": "00003201"
}
},
etc.... For all the items from the FormProcessor output.
So i guess this means that i want to create an array containing with the amount of unique items, each in a separate object?
If i have left out some important information please give me a notice. An ELI5 description would be preferable since im definitely not a developer... 🙂
Thanks!
/JWP