I have a object like this one. How can i convert it to Array in JavaScript.
I'm try so hard, but it doesn't work, i can not alert or console.log it.
I have this object below
{
"2017": {
"08": [{
"id": "22",
"pass": "temp1"
}, {
"id": "23",
"pass": "af",
}],
"09": [{
"id": "25",
"pass": "zx"
}]
},
"2018": {
"08": [{
"id": "24",
"pass": "gre"
}]
}
}
And this is the array i want it to be in JavaScript
Array
(
[2017] => Array
(
[08] => Array
(
[0] => Array
(
[id] => 22
[pass] => temp1
)
[1] => Array
(
[id] => 23
[pass] => af
)
)
[09] => Array
(
[0] => Array
(
[id] => 25
[pass] => zx
)
)
)
[2018] => Array
(
[08] => Array
(
[0] => Array
(
[id] => 24
[pass] => gre
)
)
)
)
Thank you very much for answering