私はこのように見えるオブジェクトを持っています。
foo = {
0 : {
'bar' : 'baz',
'qux' : 'quux',
'this' : { 'hello' : 'yes' } // this is the object I want to extract
}
1 : {
'bar' : 'baz',
'qux' : 'quux',
'this' : { 'hello' : 'yes' } // extract
}
2 : {
'bar' : 'baz',
'qux' : 'quux',
'this' : { 'hello' : 'yes' }, // extract
'that' : { 'hello' : 'no' } // extract
}
}
このような for ループを使用すると、すべてのオブジェクトをループできます。
for(var i in foo){
...
}
問題は、各オブジェクトの ('this')よりも 3 番目以降の子オブジェクトからのみデータを取得したいことです。