Skip to Content
0
Jan 06, 2021 at 12:12 PM

JSON empty value issue - OData Receiver

647 Views

Hi,

CPI is sending JSON message as given below after message mapping and XML to JSON converter.

{
"EmpNr": "1234",
"EmpDetails":""
}

But, The SAP OData service works if JSON message is as given below. OData service works if EmpDetails have empty value in brackets [].

{
"EmpNr": "1234",
"EmpDetails": []
}

How can we convert "EmpDetails":"" to "EmpDetails": [] when sending JSON message to SAP OData service. Can anyone help in this.