def METHOD_NAME(data):
    """Parse the data from a json file.
    Args:
        data (filepointer): File-like object containing a Json document,
            to be parsed into json.
    Returns:
        dict: The file successfully parsed into a dict.
    Raises:
        ValueError: If there was an error parsing the file.
    """
    try:
        return json.load(data)
    except ValueError as json_error:
        raise json_error