Here's a useful little snippersnippet I use in javascript when I want to find out about an object.
var s = "";
for(x in data)
s += x + "=" + data[x] + "\r\n";
alert(s);
It will alert all methods/properties of the object data, but is not recursive (so you wouldnt see anything from nested.