Majid
4 years agoNew Contributor III
Array Rename
Hi Team,
I am trying to achieve below. I would need directions on how to achieve below in a mapper or any other way.
Source :
{
“UBER_ID”:[
“1”,
“Integer_pattern”
],
“First_name”:[
“Majid”,
“TextOnly_pattern”
],
“Last_name”:[
“”,
“TextOnly_pattern”
]
}
Target :
I would like to rename the above fields based on the value in the array. Below is the output I am looking at.
{
“Integer_pattern”:[
“1”,
],
“TextOnly_pattern”:[
“Majid”,
],
" TextOnly_pattern":[
“”,
]
}