Trying to pull some data out of a returned json object. While testing this is the json object I get.
I'm trying to access the height but can't seem to get it.
Here is the data from chrome expression watcher
testData: Object
10100832561876234: Array[9]
0: Object
height: 2048
source: "https://fbcdn-sphotos-h-a.akamaihd.net"
width: 1529
__proto__: Object
1: Object
2: Object
3: Object
4: Object
5: Object
6: Object
7: Object
8: Object
length: 9
__proto__: Array[0]
10100856101138364: Array[9]
0: Object
1: Object
2: Object
3: Object
4: Object
5: Object
6: Object
7: Object
8: Object
length: 9
Here is my code to get the height
testData = jQuery.parseJSON( jsonData );
for (var property in testData) {
tester = property[0].height;
alert(tester);
}
Currently I'm getting undefined in my alert