How do I see the how the JSON object is formatted? -
i have application sending me json object. want see how json data structure in javascript alert this. how can that?
you can't develop in chrome/firefox ? @ changing this, coding 1 hand tied behind back. preferred method using chrome dev toolbar, here other ways.
you can debug using browser based debugger, ie .
you use json.stringifiy , alert
output,the code here
and there these viewers http://jsonviewer.stack.hu/ , jollydroll
and can loop through different object properties :
for(var propertyname in yourjson){ //will loop through different elements in json alert(yourjson[propertyname]); //will output valueof each element alert(propertyname); //will output name of each element }
Comments
Post a Comment