I am able to get a JSON object root response to work, like this:
{
"Items": [
{
"name": "root?",
"thing2": "asdf"
},
{
"name": "root 2?",
"thing2": "asasdfasddf"
}
]
}With Mapper like this:
output:
MAP():
items: Items
converter:
name_output: item.nameOutput is this (as expected):
{
"output": [
{
"name_output": "root?"
},
{
"name_output": "root 2?"
}
]
}
Problem is when the input (response object) is an array of objects with no root key to address:
[
{
"name": "root?",
"thing2": "asdf"
},
{
"name": "root 2?",
"thing2": "asasdfasddf"
}
]What would be the equivalent Mapper to use to get the same output as above?