Uncaught SyntaxError: Unexpected token 's', "sdfsdf" is not valid JSON
at JSON.parse (<anonymous>)
at <anonymous>:1:6
Agar apne json.parse() function me proper string nahi di hai to apko ye wala error ayenga
Error Code:-
JSON.parse("sdfsdf")
Solution:- JSON.parse("{"name":"asdasd","age":2333,"address":"best","MobileNo":1234567890}")
Thanks you for commenting your questions. I will see question and respond you.