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
The best solution for me was the following:
simple and without using any framework
var doSomethingForAll = function (arg) { if (arg != undefined && arg.length > 0) { arg.map(function (item) { // do something for item doSomethingForAll (item.subitem) }); } }