import json


def _stmts_dict_to_json_str(stmt_dict):
    """Make a json representation from dict of statements keyed by their uuid's

    This function is the inverse of _json_str_to_stmts_dict()

    Parameters
    ----------
    stmt_dict : dict
        Dict with statements keyed by their uuid's: {uuid: stmt}

    Returns
    -------
    json_str : str
        A json compatible string
    """
    return json.dumps([s.to_json() for _, s in stmt_dict.items()])