I have that object sample pages
:
{
"page_1":
{
"stats":
{
"stat_1": 20,
"stat_2": 40
}
"ahkam":
{
//Staff
}
}
"page_2":
{
//staff
}
}
How can i get access to the value of stat_2
?
I used that expression but i don't know why it does not work:
Object.keys(pages["page_1"].stats)["stat_1"]