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

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

Source

Also in JavaScript: