Hi all,
please help to form a list,
I have a register variable as below,
[
{
"application":
{
name: "abc"
}
},
{
"service":
{
"name": "def"
}
},
{
"service":
{
"name": "ghi"
}
},
}
{
"application":
{
name: "jkl"
}
},
{
"service":
{
"name": "mno"
}
},
}
]
I need to form a list from this list of dictionaries,
The list i need should be like
[
"name": "abc"
"service": "def"
"service":"ghi"
]
[
"application": "jkl"
"service":"mno"
]
starting from the first application to the services until the second application should come under one list. and starting from second application to the services until 3rd should come under 2nd list.
Note: one application contain atleast ome service and more than 2 services also that will be based on register variable. and here the total number of application is two that can also be differ based on register variable.
Is there any way to do this.