In my code, I have an array of objects that each contain a base object with a set of values.
My goal is to remove the base object from all the data and achieve the Expected result shown below.
Here is an example of the array:
[
{
"100": {
"id": "100",
"name": "Test name 1"
},
"101": {
"id": "101",
"name": "Test name 2"
},
"102": {
"id": "102",
"name": "Test name 3"
}
}
]
Expected Result
[
{
"id": "100",
"name": "Test name 1"
},
{
"id": "101",
"name": "Test name 2"
},
{
"id": "102",
"name": "Test name 3"
}
]