current data
[
{
"id": 0,
"name": "Active",
"value": "Y",
z"
},
{
"id": 1,
"name": "controls",
"value": "N",
}
]
result data
{"Active":"Y",
"controls":"N"}
how to map value of one item in object as another item key ( as one object)