Hello!
I had trouble using the result parser on an array earlier and wondered if I misunderstood the syntax somehow. My json was something like this:
{
"weekdays": [
{
"dayOfWeek": "Monday",
"dayNumber": 1
},
{
"dayOfWeek": "Tuesday",
"dayNumber": 2
},
{
"dayOfWeek": "Wednesday",
"dayNumber": 3
}
]
}
The code
rawResponseData.weekdays.test = "hello"
return rawResponseData
did not add a test property with the value “hello” to every weekday as expected. Adding a single test property outside of the array worked as expected with
rawResponseData.test = "hello"
return rawResponseData
I was able to find a workaround using update object after the result mapping, but I was curious how one would use the parser on arrays in the future.