Hi,
When I am converting the XML to JSON and when I try to extract data from JSON I am getting errors and when I did some searching it lead me to the Data is not parsing correcelty in JSON format.
I am try to extract specific data using CODE and this what I have wreiten ![]()
const hostList = $input.json[“HOST_LIST_VM_DETECTION_OUTPUT”][“RESPONSE”][“HOST_LIST”][“HOST”];
const endResult = [];
for (let i = 0; i < hostList.length; i++) {
endResult.push({
“ID”: hostList[i][“ID”],
“IP”: hostList[i][“IP”],
“NETBIOS”: hostList[i][“NETBIOS”],
“RESULTS”: hostList[i][“DETECTION_LIST”][“DETECTION”][0][“RESULTS”]
});
}
return endResult;
Any one help me with this
