Adding debug to the JSON
Handle JSON parsing erros by retrying.