For example, if i have
{
"key1":{
"key2":[
{
"key3":[
{
"key4":{
"key5":0
}
},
{
"key6":{
"key7":""
}
}
]
},
{
"key8":{
"key9":true
}
}
]
}
}
is there a way to get all the keys like this?
["key1", "key2", "key3", "key4", "key5", "key6", "key7", "key8", "key9"]
edit: i tried the suggestion here, but it didn't work out Typescript: what could be causing this error? "Element implicitly has an 'any' type because type 'Object' has no index signature"