import json


def json2dict(file):
    """
    Function to read a json file and parse it do a dictionary
    :param file: json file
    :return: the dictionary
    """
    with open(file, "r", encoding='utf-8') as read_file:
        # encoding='utf-8' to take into account Greek letters
        d = json.load(read_file, encoding='utf-8')
    return d