let newLocation = JSON.parse(location);
console.log(newLocation);

bunu dener misiniz