Fix display of JSON errors.