cancel
Showing results forย 
Search instead forย 
Did you mean:ย 

Objects From Array

sjakathi
New Contributor II

Hi ,
Can you please help me to get the objects from the array as below.The LX segment is dynamic in the below example it is having 2 but it will be varying.
This is my Input
[
{
โ€œorder_ediโ€: [
โ€œLX|000001โ€,
โ€œW01|1|EA||IN|53142262|UP|642470202104||||||||VN|ER3333-03-abcdโ€,
โ€œG69|descriptionโ€,
โ€œN9|VC|A901โ€,
โ€œN9|SZ|64-120โ€,
โ€œN9|CH|068-07-04338โ€,
โ€œW20|1|0|EAโ€,
โ€œLX|000002โ€,
โ€œW01|1|EA||IN|53142262|UP|642470202104||||||||VN|ER222-03-efghโ€,
โ€œG69|Descriptionโ€,
โ€œN9|VC|A301โ€,
โ€œN9|SZ|66-120โ€,
โ€œN9|CH|068-07-02338โ€,
โ€œW20|1|0|EAโ€,
]
}
]

I want the output as below.
{
โ€œorder_ediโ€: โ€œLX|000001โ€,
โ€œW01|1|EA||IN|53142262|UP|642470202104||||||||VN|ER3333-03-abcdโ€,
โ€œG69|descriptionโ€,
โ€œN9|VC|A901โ€,
โ€œN9|SZ|64-120โ€,
โ€œN9|CH|068-07-04338โ€,
โ€œW20|1|0|EAโ€
}
{
โ€œorder_ediโ€:
โ€œLX|000002โ€,
โ€œW01|1|EA||IN|53142262|UP|642470202104||||||||VN|ER222-03-efghโ€,
โ€œG69|Descriptionโ€,
โ€œN9|VC|A301โ€,
โ€œN9|SZ|66-120โ€,
โ€œN9|CH|068-07-02338โ€,
โ€œW20|1|0|EAโ€
}

1 REPLY 1

spinaka
New Contributor III

You can make it this way.
image
SP new pipeline 10_2021_10_25.slp (5.1 KB)