Hello
I am trying to convert a JSON string to XML
but it doesn't work
I haven't good knowledge of JSON nor XML but when I parse this string, the XML truncates at last and I am unable to find out what is the problem
Some help or tips will be very appreciated.
Thanks
This is the JSON
{
"rootId": "AXTU4xmJ2Pwf5M61uHKD",
"requestId": "3c5d6bc431e5e144:e6dc8c5:174d46b5d5e:-8000:226",
"details": {
"owner": "admin",
"severity": 1,
"flag": false,
"customFields": {},
"description": "Possible Malware Threat",
"title": " Possible Malware threat",
"tags": [
"CYC",
"low",
"Possible Malware threat"
],
"caseId": 36,
"tlp": 3,
"metrics": {},
"pap": 2,
"startDate": 1587977329785,
"status": "Open"
},
"operation": "Creation",
"objectId": "AXTU4xmJ2Pwf5M61uHKD",
"startDate": 1601299488122,
"objectType": "case",
"base": true,
"object": {
"severity": 1,
"owner": "admin",
"_routing": "AXTU4xmJ2Pwf5M61uHKD",
"flag": false,
"customFields": {},
"_type": "case",
"description": "Possible Malware Threat CREDITOCAUCION Correlation Engine",
"title": " Possible Malware threat",
"tags": [
"CYC",
"low",
"Possible Malware threat"
],
"createdAt": 1601299487021,
"_parent": null,
"createdBy": "admin",
"caseId": 36,
"tlp": 3,
"metrics": {},
"_id": "AXTU4xmJ2Pwf5M61uHKD",
"id": "AXTU4xmJ2Pwf5M61uHKD",
"_version": 1,
"pap": 2,
"startDate": 1587977329785,
"status": "Open"
}
}
and this is the resulted xml.
as you can see, at the end it is truncated
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<root>
<rootId>AXTU4xmJ2Pwf5M61uHKD</rootId>
<requestId>3c5d6bc431e5e144:e6dc8c5:174d46b5d5e:-8000:226</requestId>
<details>
<owner>admin</owner>
<severity>1</severity>
<flag>false</flag>
<customFields/>
<description>Possible Malware Threat</description>
<title> Possible Malware threat</title>
<tags>CYC</tags>
<tags>low</tags>
<tags>Possible Malware threat</tags>
<caseId>36</caseId>
<tlp>3</tlp>
<metrics/>
<pap>2</pap>
<startDate>1587977329785</startDate>
<status>Open</status>
</details>
<operation>Creation</operation>
<objectId>AXTU4xmJ2Pwf5M61uHKD</objectId>
<startDate>1601299488122</startDate>
<objectType>case</objectType>
<base>true</base>
<object>
<severity>1</severity>
<owner>admin</owner>
<_routing>AXTU4xmJ2Pwf5M61uHKD</_routing>
<flag>false</flag>
<customFields/>
<_type>case</_type>
<description>Possible Malware Threat CREDITOCAUCION Correlation Engine</description>
<title> Possible Malware threat</title>
<tags>CYC</tags>
<tags>low</tags>
<tags>Possible Mal...