I tried to parse my json data and put it in single array but got no luck. I tried the answers in this link How to convert JSON object to JavaScript array but still not the exact result that i wanted.
here's my json
{
"Sheet1": [
{
"code": "00011",
"name": "Test 1"
},
{
"code": "00082",
"name": "Test 2"
},
{
"code": "00083",
"name": "Test 3"
}
]
}
and i want to put it in one array. The result should be like the code below.
var myarray = [{"code": "00011", "name": "test 1"},{"code": "00082", "name": "test 2"},{"code": "00083", "name": "test 3"}];