I have an array of Objects where I want to convert the first value into a key and the second value into a value. Please review the question below along with my desired output:
[
{
"name": "Unknown",
"value": "RAHUL"
},
{
"name": "FirstName",
"value": "WILLEKE LISELOTTE"
},
{
"name": "LastName",
"value": "DE BRUIJN"
}
]
The expected Object format should be like this:
{
"Unknown": "RAHUL"
},
{
"FirstName": "WILLEKE LISELOTTE"
},
{
"LastName": "DE BRUIJN"
}