def element_name_by_href(href):
    """
    The element href is known, possibly from a reference in an
    elements json. You want to retrieve the name of this element.

    :param str href: href of element
    :return: str name of element, or None
    """
    if href:
        element = fetch_json_by_href(href)
        if element.json:
            return element.json.get('name')
def element_name_by_href ( href ) : if href : element = fetch_json_by_href ( href ) if element . json : return element . json . get ( 'name' )
The element href is known, possibly from a reference in an
    elements json. You want to retrieve the name of this element.

    :param str href: href of element
    :return: str name of element, or None