Added generic JSON parser error handler