JSON.parse() Errors: What Each Message Actually Means
You call JSON.parse() and get a SyntaxError. The message says Unexpected token < at position 0. The JSON is coming from an API. Position 0 means the very first character is wrong.
Most of the time, it is not your JSON at all. It's an HTML error page....
helloashish.hashnode.dev6 min read