import json


def read_json(file: str) -> dict:
    """
    Read JSON file

    :param file
    :type file: str
    :raises IOError, JSONDecodeError
    :returns dict
    """
    hnd = open(file, 'r')
    data = hnd.read()
    hnd.close()
    return json.loads(data)