Are you want debug JSON object?
Are you want Traverse all the Nodes of a JSON Object Tree with Simple Java script?
//Debug Josn Array
//Write Key and value in console log
function js_traverse(jsonObject) {
var type = typeof jsonObject;
if (type == “object”) {
for (var key in jsonObject) {
console.log(“key: “, key);
js_traverse(jsonObject[key]);
}
} else {
console.log(jsonObject);
}
}
Advertisement