Hi all, I try to create a block of options to append in a adaptive card, for this I create a loop to append to a string each option, after I use the function JSON() to convert and add to other activity to complete adaptive card code, but the output of JSON() function only create JSON format for 1 option:
Compose to remove the last character (',') with all string

the complete output is: {"type":"Container", "items": [{"type": "ColumnSet","id":"TableGroupChoiceSelection0","columns": [{"type": "Column","width": "stretch","id": "ColGroupName0","items": [{"type": "Input.ChoiceSet","choices": [{"title": "Definicion Gobierno Automatizacion","value": "Definicion Gobierno Automatizacion"}],"placeholder": "Seleccione de las siguientes opciones","id": "nameTeamChoices0","style": "expanded","isMultiSelect": true,"spacing": "None","separator": true}],"horizontalAlignment": "Left","verticalContentAlignment": "Center","height": "stretch"},{"type": "Column","width": "stretch","id": "ColTypeGroup0","items": [{"type": "Input.ChoiceSet","choices": [{"title": "1.Proyecto","value": "1.Proyecto"},{"title": "2.Operación","value": "2.Operación"},{"title": "3.Proveedores","value": "3.Proveedores"},{"title": "4.Grupo","value": "4.Grupo"},{"title": "5.Eventos","value": "5.Eventos"},{"title": "6.Comunicación","value": "6.Comunicación"},{"title": "7.Ninguno de los anteriores","value": "7.Ninguno de los anteriores"}],"placeholder": "Tipo de grupo","id": "typeTeamChoices0"}],"height": "stretch"}]}],"id": "TableRow0"},{"type":"Container", "items": [{"type": "ColumnSet","id":"TableGroupChoiceSelection1","columns": [{"type": "Column","width": "stretch","id": "ColGroupName1","items": [{"type": "Input.ChoiceSet","choices": [{"title": "Elaborar propuesta de Gobierno Automatizacion","value": "Elaborar propuesta de Gobierno Automatizacion"}],"placeholder": "Seleccione de las siguientes opciones","id": "nameTeamChoices1","style": "expanded","isMultiSelect": true,"spacing": "None","separator": true}],"horizontalAlignment": "Left","verticalContentAlignment": "Center","height": "stretch"},{"type": "Column","width": "stretch","id": "ColTypeGroup1","items": [{"type": "Input.ChoiceSet","choices": [{"title": "1.Proyecto","value": "1.Proyecto"},{"title": "2.Operación","value": "2.Operación"},{"title": "3.Proveedores","value": "3.Proveedores"},{"title": "4.Grupo","value": "4.Grupo"},{"title": "5.Eventos","value": "5.Eventos"},{"title": "6.Comunicación","value": "6.Comunicación"},{"title": "7.Ninguno de los anteriores","value": "7.Ninguno de los anteriores"}],"placeholder": "Tipo de grupo","id": "typeTeamChoices1"}],"height": "stretch"}]}],"id": "TableRow1"},{"type":"Container", "items": [{"type": "ColumnSet","id":"TableGroupChoiceSelection2","columns": [{"type": "Column","width": "stretch","id": "ColGroupName2","items": [{"type": "Input.ChoiceSet","choices": [{"title": "Gestion de pendientes","value": "Gestion de pendientes"}],"placeholder": "Seleccione de las siguientes opciones","id": "nameTeamChoices2","style": "expanded","isMultiSelect": true,"spacing": "None","separator": true}],"horizontalAlignment": "Left","verticalContentAlignment": "Center","height": "stretch"},{"type": "Column","width": "stretch","id": "ColTypeGroup2","items": [{"type": "Input.ChoiceSet","choices": [{"title": "1.Proyecto","value": "1.Proyecto"},{"title": "2.Operación","value": "2.Operación"},{"title": "3.Proveedores","value": "3.Proveedores"},{"title": "4.Grupo","value": "4.Grupo"},{"title": "5.Eventos","value": "5.Eventos"},{"title": "6.Comunicación","value": "6.Comunicación"},{"title": "7.Ninguno de los anteriores","value": "7.Ninguno de los anteriores"}],"placeholder": "Tipo de grupo","id": "typeTeamChoices2"}],"height": "stretch"}]}],"id": "TableRow2"},{"type":"Container", "items": [{"type": "ColumnSet","id":"TableGroupChoiceSelection3","columns": [{"type": "Column","width": "stretch","id": "ColGroupName3","items": [{"type": "Input.ChoiceSet","choices": [{"title": "Proyectos Procesos BPM Bizagi","value": "Proyectos Procesos BPM Bizagi"}],"placeholder": "Seleccione de las siguientes opciones","id": "nameTeamChoices3","style": "expanded","isMultiSelect": true,"spacing": "None","separator": true}],"horizontalAlignment": "Left","verticalContentAlignment": "Center","height": "stretch"},{"type": "Column","width": "stretch","id": "ColTypeGroup3","items": [{"type": "Input.ChoiceSet","choices": [{"title": "1.Proyecto","value": "1.Proyecto"},{"title": "2.Operación","value": "2.Operación"},{"title": "3.Proveedores","value": "3.Proveedores"},{"title": "4.Grupo","value": "4.Grupo"},{"title": "5.Eventos","value": "5.Eventos"},{"title": "6.Comunicación","value": "6.Comunicación"},{"title": "7.Ninguno de los anteriores","value": "7.Ninguno de los anteriores"}],"placeholder": "Tipo de grupo","id": "typeTeamChoices3"}],"height": "stretch"}]}],"id": "TableRow3"},{"type":"Container", "items": [{"type": "ColumnSet","id":"TableGroupChoiceSelection4","columns": [{"type": "Column","width": "stretch","id": "ColGroupName4","items": [{"type": "Input.ChoiceSet","choices": [{"title": "Robotic Process Automation (RPA)","value": "Robotic Process Automation (RPA)"}],"placeholder": "Seleccione de las siguientes opciones","id": "nameTeamChoices4","style": "expanded","isMultiSelect": true,"spacing": "None","separator": true}],"horizontalAlignment": "Left","verticalContentAlignment": "Center","height": "stretch"},{"type": "Column","width": "stretch","id": "ColTypeGroup4","items": [{"type": "Input.ChoiceSet","choices": [{"title": "1.Proyecto","value": "1.Proyecto"},{"title": "2.Operación","value": "2.Operación"},{"title": "3.Proveedores","value": "3.Proveedores"},{"title": "4.Grupo","value": "4.Grupo"},{"title": "5.Eventos","value": "5.Eventos"},{"title": "6.Comunicación","value": "6.Comunicación"},{"title": "7.Ninguno de los anteriores","value": "7.Ninguno de los anteriores"}],"placeholder": "Tipo de grupo","id": "typeTeamChoices4"}],"height": "stretch"}]}],"id": "TableRow4"}
After, I use the function JSON(outputs('EliminarUltimoCaracter')) to convert all string to JSON, but the output is this:

{
"type": "Container",
"items": [
{
"type": "ColumnSet",
"id": "TableGroupChoiceSelection0",
"columns": [
{
"type": "Column",
"width": "stretch",
"id": "ColGroupName0",
"items": [
{
"type": "Input.ChoiceSet",
"choices": [
{
"title": "Definicion Gobierno Automatizacion",
"value": "Definicion Gobierno Automatizacion"
}
],
"placeholder": "Seleccione de las siguientes opciones",
"id": "nameTeamChoices0",
"style": "expanded",
"isMultiSelect": true,
"spacing": "None",
"separator": true
}
],
"horizontalAlignment": "Left",
"verticalContentAlignment": "Center",
"height": "stretch"
},
{
"type": "Column",
"width": "stretch",
"id": "ColTypeGroup0",
"items": [
{
"type": "Input.ChoiceSet",
"choices": [
{
"title": "1.Proyecto",
"value": "1.Proyecto"
},
{
"title": "2.Operación",
"value": "2.Operación"
},
{
"title": "3.Proveedores",
"value": "3.Proveedores"
},
{
"title": "4.Grupo",
"value": "4.Grupo"
},
{
"title": "5.Eventos",
"value": "5.Eventos"
},
{
"title": "6.Comunicación",
"value": "6.Comunicación"
},
{
"title": "7.Ninguno de los anteriores",
"value": "7.Ninguno de los anteriores"
}
],
"placeholder": "Tipo de grupo",
"id": "typeTeamChoices0"
}
],
"height": "stretch"
}
]
}
],
"id": "TableRow0"
}
Anybody knows how to convert and get the complete string in format JSON.