Handle json.parse error gracefully.