I have a question about transforming a json to jsonArray by jolt spec in apache nifi, my input is :
{
"name": "tom",
"experience ": [
{
"year": "2020",
"corp": "aaaa"
},
{
"year": "2019",
"corp": "bbbb"
}
]
}
and the output I need is :
[
{
"name": "tom",
"year": "2020",
"corp": "aaaa"
},
{
"name": "tom",
"year": "2019",
"corp": "bbbb"
}
]
can anyone help me ?