The data I currently have is formatted like this:
[{
"Consumer": [{
"Associated ID": "JSUDB2LXXX / BIC 7503 / US",
"Parent Consumer": "7503"
}],
"Owner": [{
"Entity": "EN",
"Region": "LA"
}]
}]
I am looking to transform it into the following format. Each old key and value pair will be split into a separate object with "title" as the new key for the old key, and "name" as the corresponding value.
[{
"Consumer": [{
"title": "Associated ID",
"name": "JSUDB2LXXX / BIC 7503 / US"
},
{
"title": "Parent Consumer",
"name": "7503"
}
],
"Owner": [{
"title": "Entity",
"name": "EN"
},
{
"title": "Region",
"name": "LA"
}
]
}]