import json


def load_from_json(file):
    """
    Load a json file into a dictionary.
    :param file: the .json file (with path)
    """
    with open(file, "r") as json_file:
        contents = json.load(json_file)

    return contents