def check(file_staged_for_commit, options):
    basename = os.path.basename(file_staged_for_commit.path)
    if not fnmatch.fnmatch(basename, options.json_files):
        return True
    try:
        json.loads(file_staged_for_commit.contents)
    except __HOLE__:
        return False
    else:
        return True
dataset/ETHPy150Open evvers/git-pre-commit-hook/git_pre_commit_hook/builtin_plugins/json_check.py/check