Handled JSON file parsing errors.