I have json input with array:
{
"id": 3,
"name": "ROOT",
"mylist": [{
"id": 10,
"info": "hello"
},
{
"id": 11,
"info": "world"
}
]
}
That i would like to transform into "flat" json like the following:
{
"id": 3,
"name": "Root",
"mylist[0].id": 10,
"mylist[0].info": "hello",
"mylist[1].id": 11,
"mylist[1].info": "world"
}
How can i achieve that with JoltTransformJSON spec?