Given a JSON array as shown above, the task is to extract all the values from the array and create a new array of arrays.
The challenge is to achieve this without using any model files in Typescript, and the method to do so is not clear.
Assistance in resolving this issue would be greatly appreciated.
[
{
"firstName": "Rajesh",
"lastName": "Kumar",
"age": "25"
},
{
"firstName": "john",
"lastName": "david",
"age": "26"
}
]
The desired output should be as follows:
[["Rajesh","Kumar","25"],["john","david","26"]]