code: def element_as_json_with_filter(name, _filter):
      
      if name:
          element_href = element_href_use_filter(name, _filter)
          if element_href:
              return element_by_href_as_json(element_href)
docs: Get specified element json data by name with filter.
      Filter can be any valid element type.
  
      :param name: name of element
      :param _filter: element filter, host, network, tcp_service,
                      network_elements, services, services_and_applications, etc
      :return: json data representing element, else None