Handle JSONDecodeError locally.