Reputation: 23
I am trying to fetch a JSON Array, however the Logic App Response it itself is appending a backslash to the response.
Output expected :- {
"ABC": [
"000D",
"100D",
"1200D"
]
}
I am getting response like below
I am trying to use Replace function but it is not allowing to have replace function for array output. Any help is appreciated.
Thanks
Upvotes: 0
Views: 1243
Reputation: 8234
After reproducing from my end, I could able to get this done by converting the array to string and then use replace function. Below is the flow of my logic app.
Results:
Upvotes: 0
Reputation: 11197
You can do it like this ...
The expression in that second step is ...
json(replace(string(variables('JSON')), '\"', ''))
... which in simple terms is doing the following ...
Upvotes: 1