I\'d like to traverse a JSON object tree, but cannot find any library for that. It doesn\'t seem difficult but it feels like reinventing the wheel.
In XML there are
function traverse(o) { for (var i in o) { if (!!o[i] && typeof(o[i])=="object") { console.log(i, o[i]); traverse(o[i]); } else { console.log(i, o[i]); } } }