Hi all,
Can anyone help us to convert a BOD into a JSON request? If we put just 1 element in an array in the BOD when we convert to JSON ION just creates an object, not an array. If we put 2 elements, when we convert to JSON ION creates an array with 2 objects and a null so the size of the array in JSON is 3. How can we create an array in JSON with no null when converting from BOD to JSON?
BOD
<?xml version="1.0" encoding="UTF-8"?>
<SyncWorkRequestJson xmlns="schema.infor.com/.../2" xmlns:xs="www.w3.org/.../XMLSchema">
<ApplicationArea>
<Sender>
<LogicalID>lid://infor.ips.ips</LogicalID>
<ComponentID>erp</ComponentID>
<ConfirmationCode>OnError</ConfirmationCode>
</Sender>
<CreationDateTime>2019-03-04T22:10:28</CreationDateTime>
<BODID>DOM-6160:infor-nid:WATERCARE_DEV:1000:1000:1037:?WorkRequest&verb=Sync&messageId=lid%3a%2f%2finfor.ips.ips.WATERCARE_DEV.WorkRequest.Sync.36069504-a38e-4532-922c-7591ef762337</BODID>
</ApplicationArea>
<DataArea>
<Attachments>watercaredev-contractors.s3.ap-southeast-2.amazonaws.com/.../Attachments>
<Attachments>watercaredev-contractors.s3.ap-southeast-2.amazonaws.com/.../Attachments>
<Attachments/>
</WorkRequestJson>
</DataArea>
</SyncWorkRequestJson>
JSON
{
"Attachments": [
"https://{URL}/IPS_Document-517-1-LATEST-IPS_Document-491-1-LATEST-899162076.jpg",
null
]
}