unexpected token o in json at position 1 react code example Example: "SyntaxError: Unexpected token o in JSON at position 1 var newData = JSON.stringify(userData)