ColinEberhardt/json-transforms

Possible to iterate over string array?

Opened this issue · 0 comments

Hello,
First, thanks for the module, helped me a lot.

Except that I cannot figure out if this is possible:

given:

{
"success": true,
"error": null,
"data": {
"suggestions": [ "Book", "Pensil", "Pen"]
}
}

I'm trying to achieve:

{"suggestions":
[
{"suggestion":"Book"},
{"suggestion":"Pensile"},
{"suggestion":"Pen"}
]
}

Thanks!