Hi everyone, I got this response from an endpoint I cosumed using web services data actions:
Normal Output
{
"myList": [
{
"id": 1,
"texto": "Texto dto 1",
"data": [
"lion",
"tiger",
"dog"
]
},
{
"id": 2,
"texto": "Texto dto 2",
"data": [
"lion2",
"tiger2",
"dog2"
]
},
{
"id": 3,
"texto": "Texto dto 3",
"data": [
"lion3",
"tiger3",
"dog3"
]
}
]
}
Flatten Output
{
"myList.texto": [
"Texto dto 1",
"Texto dto 2",
"Texto dto 3"
],
"myList.data": [
[
"lion",
"tiger",
"dog"
],
[
"lion2",
"tiger2",
"dog2"
],
[
"lion3",
"tiger3",
"dog3"
]
],
"myList.id": [
1,
2,
3
]
}
The purpose of vizualice the data in the flatten output form is to know how to organice the data in the contract so can be available as a varible in the architect.
When I tried to fetch the data from myList.data using the GetAt method, the method fails because architect interpretates the output as a String Collection instead of a "Collection Collection".
Is there a way to actually access the data arrays values in architect? It would be great if you can help my with some contracts output configuration.
Regards,
Andrés V.