import json


def read(path):
    """ Read a json config and decript with the given passwork if encrypted.

    Args:
        path: The path to the config file.

    Returns:
        The loaded config as json serializable data.
    """
    with open(path, 'r') as config_file:
        return json.loads(config_file.read())