Try with JSON.stringify(object.data.average[0][0].succeeded).
It seems that object.data.average[0]object.data.average[0] returns an array with a single element in it.
Also, you can use console.log(object.data)console.log(object.data), instead of alertalert. It's way easier to see a tree representation of an object in the console on a modern web-browser, instead of alerting string values like in the old days.
Xlander
- 1.3k
- 12
- 24