I have this JSON array which I am passing as part of an http request body:
Here is the string:
"peoplePickerInput":"[ { \"Key\":\"@{items('Apply_to_each_-_Certificates_2')?['EmailAddressNo1']}\"},{ \"Key\":\"@{items('Apply_to_each_-_Certificates_2')?['EmailAddressNo2']}\" } ]"
Now I want to build a compose to check if the following is empty:
@{items('Apply_to_each_-_Certificates_2')?['EmailAddressNo2']}
And if so to only have one item inside the array, as follow:
"peoplePickerInput":"[ { \"Key\":\"@{items('Apply_to_each_-_Certificates_2')?['EmailAddressNo1']}\"}]"
So how I can do this inside compose and pass the output of the compose to the "Send HTTP request" action?
