1. Parsing data that is already an object
response.json(), axios's response.data and most HTTP clients already give you a parsed object. Calling JSON.parse on the result again throws this error, so use the value as it is.
const { data } = await axios.get('/api/orders')
// data is already an object, no JSON.parse needed
console.log(data.items.length)