def METHOD_NAME(self, output, debug=False):
    for vuln_json in filter(lambda x: x != '', output.split("\n")):
        vuln_dict = json.loads(vuln_json)
        host = vuln_dict.get('host')
        url_data = urlparse(host)
        ip = vuln_dict.get("ip", self.resolve_hostname(url_data.hostname))
        host_id = self.createAndAddHost(
            name=ip,
            hostnames=[url_data.hostname])
        port = url_data.port
        if not port:
            if url_data.scheme == 'https':
                port = 443
            else:
                port = 80
        service_id = self.createAndAddServiceToHost(
            host_id,
            name=url_data.scheme,
            ports=port,
            protocol="tcp",
            status='open',
            version='',
            description='web server')
        matched = vuln_dict.get('matched')
        matched_data = urlparse(matched)
        reference = vuln_dict["info"].get('reference', [])
        if not reference:
            reference = []
        else:
            if isinstance(reference, str):
                if re.match('^- ', reference):
                    reference = list(filter(None, [re.sub('^- ', '', elem) for elem in reference.split('\n')]))
                else:
                    reference = [reference]
        references = vuln_dict["info"].get('references', [])
        if references:
            if isinstance(references, str):
                if re.match('^- ', references):
                    references = list(filter(None, [re.sub('^- ', '', elem) for elem in references.split('\n')]))
                else:
                    references = [references]
        else:
            references = []
        cwe = vuln_dict['info'].get('cwe', [])
        capec = vuln_dict['info'].get('capec', [])
        refs = sorted(list(set(reference + references + capec)))
        tags = vuln_dict['info'].get('tags', [])
        if isinstance(tags, str):
            tags = tags.split(',')
        impact = vuln_dict['info'].get('impact')
        resolution = vuln_dict['info'].get('resolution', '')
        easeofresolution = vuln_dict['info'].get('easeofresolution')
        request = vuln_dict.get('request', '')
        if request:
            method = request.split(" ")[0]
        else:
            method = ""
        data = [f"Matched: {vuln_dict.get('matched', '')}",
                f"Tags: {vuln_dict['info'].get('tags', '')}",
                f"Template ID: {vuln_dict.get('templateID', '')}"]
        name = vuln_dict["info"].get("name")
        run_date = vuln_dict.get('timestamp')
        if run_date:
            run_date = parse(run_date)
        self.createAndAddVulnWebToService(
            host_id,
            service_id,
            name=name,
            desc=vuln_dict["info"].get("description", name),
            ref=refs,
            severity=vuln_dict["info"].get('severity'),
            tags=tags,
            impact=impact,
            resolution=resolution,
            easeofresolution=easeofresolution,
            website=host,
            request=request,
            response=vuln_dict.get('response', ''),
            method=method,
            query=matched_data.query,
            params=matched_data.params,
            path=matched_data.path,
            data="\n".join(data),
            external_id=f"NUCLEI-{vuln_dict.get('templateID', '')}",
            run_date=run_date,
            cwe=cwe
        )