I'm getting errors when trying to parse a string to json
here is my String
{"location": " Antoine Vallasois Ave, Vacoas-Phoenix, England", "stopover":true}
and here is my javascript function
function fillWaypoints(location){
var ob =JSON.parse(location);
ArrayWaypoints.push(ob)
}