If I am given the following data by a web-service:
{
"d": [
{
"col1": "col 1 data 1",
"col2": "col 2 data 1"
},
{
"col1": "col 1 data 2",
"col2": "col 1 data 2"
}
]
}
how do I access the second col1?
As the following:
success: function( data ) {
alert( data.d ) ;
},
gives me:
[object Object],[object Object]