catch json parse error and show a more meaningful error