Uncaught (in promise) SyntaxError: Unexpected token O in JSON at position 0
snippet in javascript

Uncaught (in promise) SyntaxError: Unexpected token O in JSON at position 0

user7941

var stringified = JSON.stringify(data);
var parsedObj = JSON.parse(stringified);
 
console.log(parsedObj);

"SyntaxError: Unexpected token o in JSON at position 1

user2988

var newData = JSON.stringify(userData)