In Azure logic apps I am creating a Json body in compose action. JSON structure is like below I am passing place property value as an variable i.e. variables('result')
:
{
"place": [
{ "visit":"name"
},
{ "visit":"name"
}
]
}
In compose action how to get the above structure as i could not get the exact array like structure. I've tried a lot of things, but the result is like below:
{
"place": "[
{ "visit":"name"
},
{ "visit":"name"
}
]"
}
Double quotes are getting appended in the variable in compose action. If I pass as an array in compose means got like below double quotes is there in every element of array. I don't want doubles quotes inside array elements and I want the value as a variable in compose action's property:
{
"place": [
"{ "visit":"name"
}",
"{ "visit":"name"
}"
]
}
}
Please let me know hot to get the exact structure.