Forum Discussion

srini_polimera's avatar
srini_polimera
New Contributor III
3 years ago

Map input array issue

array mapping in mapper

My json:
“Employee”:
[
{
“name”: “Tom Cruise”,
“name”: “Robert Downey Jr.”
}
]

I need Output

{
“item”:
[
{
“name”: “Tom Cruise”,
“age”: 50,
},
{
“name”: “Robert Downey Jr.”,
“age”: 50,
}
]
}

Could you please help. Age is constant here.

Thanks