Change exception used by json parser error