Hi there, I am new to power automate and i am struggling to format data correctly
I have an array variable that is formatted the following following way:
["John", "John@mail.com", "Paul", "Paul@mail.com", "Steve", "Steve@mail.com"]
My goal is to format the data into an array of objects in the following format and parse it as JSON.
[
{
"name": "John",
"email": "John@mail.com"
},
{
"name": "Paul",
"email": "Paul@mail.com"
},
{
"name": "Steve",
"email": "Steve@mail.com"
}
]
I tried using a conditional loop however I keep hitting issues, Is there a way to do this?