Hi,
I want to "flatten" the following object:
{
"id": 0,
"name": "Root",
"mylist": [{
"id": 10,
"info": "2am-3am"
},
{
"id": 11,
"info": "3AM-4AM"
},
{
"id": 12,
"info": "4am-5am"
}]
}
I figured how to "flatten" array, but "root" values are gone in transformed
output:
{
"mylist-0-id":10,
" mylist-0-info":"2am-3am",
....
}
How can I retain "root" fields so that transformed output would like like
one below?
{
"id": 0,
"name": "Root",
"mylist-0-id":10,
" mylist-0-info":"2am-3am",
....
}
- how to copy root fields in Jolt transform? l vic
- Re: how to copy root fields in Jolt transform? Matt Burgess
