I have an object in JavaScript:
{ abc: \'...\', bca: \'...\', zzz: \'...\', xxx: \'...\', ccc: \'...\', // ... }
I
var Dictionary = { If: { you: { can: '', make: '' }, sense: '' }, of: { the: { sentence: { it: '', worked: '' } } } }; function Iterate(obj) { for (prop in obj) { if (obj.hasOwnProperty(prop) && isNaN(prop)) { console.log(prop + ': ' + obj[prop]); Iterate(obj[prop]); } } } Iterate(Dictionary);