i have been trying to loop through an axios request but i keep getting the error in my logs, i am trying to loop through my data, the returned structure of my data looks like this

```
{2 items
"data":[1 item
0:{...}34 items
]
"pagination":{4 items
"page":0
"itemsPerPage":0
"hasNextPage":true
"hasPrevPage":true
}
}

```

here is the error

```
scheduledFunction
SyntaxError: Unexpected token o in JSON at position 1 at JSON.parse (<anonymous>)

```

here is my code

```
var options = {
  method: 'GET',
  url: 'https://elenasport-io1.p.rapidapi.com/v2/fixtures',
  params: {to: d3, page: '1', from: d2},
  headers: {
    'x-rapidapi-key': '63836fd5cemshe5de364e7512350p145aebjsn744427db1224',
    'x-rapidapi-host': 'elenasport-io1.p.rapidapi.com'
  }
};

axios.request(options).then(function (response) {

    //console.log(response.data);

    data = JSON.parse(response.data); // this is the data you need to process in the request

    console.log(data);

    data.pagination.forEach(obj => {
        Object.entries(obj).forEach(([key, value]) => {
            console.log(`${key} ${value}`);
        });

}).catch(function (error) {
    console.error(error);
});

})

```