import json


def file_open_json(file):
    """Reads json file from the location input

    :param file: path of the json file
    :type file: String
    :return: contents of json
    :rtype: dictionary(dict)
    :raise Exception: Throws exception if unable to load file
    """
    try:
        with open(file) as f:
            return json.load(f)
    except Exception as e:
        print(e)
        raise Exception("Could not open the json file")