/ Published in: Other
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
function print_a( obj, indent ) { if (indent == null){ indent = ""; } var out = ""; var start:Boolean = true; for ( item in obj ) { if (typeof( obj[item] ) == "object" ){ if(!start){ out += "n"+indent+ "[" + item + "] => Object"; } else{ out += indent+ "[" + item + "] => Object"; } start = false; } else { out += indent+"[" + item + "] => " + obj[item]+""; } out += print_a( obj[item], indent+" " ) + " "; } return out; }