Uncaught (in promise) SyntaxError: Unexpected token o in JSON at position 1 at JSON.parse (<anonymous>) at index.html:68(anonymous) @ index.html:68Promise.then (async)loadData @ index.html:67onclick @ index.html:18 code example
Example: Uncaught (in promise) SyntaxError: Unexpected token O in JSON at position 0
var stringified = JSON.stringify(data);
var parsedObj = JSON.parse(stringified);
console.log(parsedObj);