def dict2name(dict_attributes) -> str:
    """ Converts attribute dictionary to JSON format string.

    Args:
        dict_attributes:: dict
            A dictionary of attributes.

    Examples:
        >>> from fwig.tools import attributetools as at
        >>> dict_ = {'penPair': 'z1r', 'serif': '1'}
        >>> at.dict2name(dict_)
        "'penPair':'z1r','serif':'1'"
    """
    return ','.join([f"'{k}':'{v}'" for k, v in dict_attributes.items()])