If you come across this error on your website, there could be a Syntax error with your JSON code.
The possible solution if you have the following code:
header(‘Content-Type’, ‘application/json’);
You need to change to:
header(‘Content-Type: application/json’);