import json


def read_dict(path):
    """ Reads a dictionary from a file using JSON. This file should have been
        written by write_dict.

    :param path: complete path including file name for output file
    :return: output dictionary from file
    """
    with open(path) as file:
        out_dict = json.load(file)
    return out_dict