Here's a query that displays the following results:
{
"data": [
{
"id": "1107702400"
},
{
"id": "1149862205",
"likes": {
"data": [
{
"name": "Penelope Test",
"category": "Arts/entertainment/nightlife",
"id": "411133928921438",
"created_time": "2012-05-23T11:41:27+0000"
},
To access the first id, you can use:
response.data[i].id
How can you retrieve the second id? (the one with "data-id-data-id" format)
There is a function that looks like this:
for(i=0;i<response.data.length;i++)
{
testdiv.innerHTML += response.data.data[i].id + '<br/>' ;
}
This function allows you to print the first id. What steps are needed to be able to print the second id?