This question has been asked several times before, but the answers provided did not help me. I have a JSON string that looks like this:
var jsonData = {
"target1": [
{"x":"222",
"y":"333",
"WPtext":"go right"},
{"x":"444",
"y":"444",
"WPtext":"go left"}
],
"target2": [
{"x":"111",
"y":"123",
"WPtext":"turn left"}
]
};
var waypoints = JSON.parse(jsonData);
When trying to execute the last statement, I encounter an error: unexpected token o. I am having trouble figuring out what is causing this issue. Any assistance would be greatly appreciated.
Sincerely, Chris