Hello and thanks for the answer,
I'll try to be as clear as possible but if some part are still cloudy don't hesitate.
I have a string variable called groupMember1

I'm getting with an Azure AD connectors every mail's user of a specific group AD (group test so seeing the ID doesn't matter)
I then with an apply to each, insert in my variable the "setup" that I want in my http call.

As you can see I add a coma at the end, in case their is multiple account in the AD group. However the json body for the http request dont want a coma at the end, therefore I remove it and insert the result in a string variable called groupMemberOK

The content is then something like that :

I then add this variable to my json body

On this screen I tried to insert my variable with the expression json(variables('groupMemberOK')) ; while it was in the good format, it only gave me the first mail and not the second.
And if I insert in the body directly the string expression, it turns out like this :

I just want my json body to be like this
"memberInfos": [
{
"email": "first@mail.com"
},
{
"email": "second@mail.com"
}
],
Should i've been using array instead of string? if so how do you remove the last char of en array (the coma) ?
Thanks again