def temporary_json_file(tmpdir_factory):
    """Temporary JSON file."""
    tmp_file_path = tmpdir_factory.mktemp('data').join('cfg.json')
    # str converting because of old Python versions
    return str(tmp_file_path)