I'm looking to convert a JSON response from:
[
{
"value": {
"name": "Actions",
"visible": true,
"property": "actions"
}
},
{
"value": {
"name": "Checkbox",
"visible": true,
"property": "checkbox"
}
}
]
to:
[
{
"name": "Actions",
"visible": true,
"property": "actions"
},
{
"name": "Checkbox",
"visible": true,
"property": "checkbox"
}
]
What is the most effective way to do this and eliminate the key "value"?
Would a foreach loop be the best approach, or are there other methods I should consider? I'm open to learning new techniques as well.
Regards, Peter