def read_json(path):
    """Reads a JSON file.

    Args:
        path: the filepath

    Returns:
        the JSON data
    """
    try:
        with open(path, "r") as f:
            return json.load(f)
    except ValueError:
        raise ValueError("Unable to parse JSON file '%s'" % path)
Reads a JSON file.

    Args:
        path: the filepath

    Returns:
        the JSON data
    
fiftyone/core/storage.py