Skip to Content
0
Dec 31, 2018 at 03:53 AM

REST RECEIVER ADAPTER in PI7.5 XML to JSON Conversion Issue

151 Views

Dear All,

I am not able to generate API in this format in PI rest receiver after array used also.

Requested Format:

[

{

"id": "amit100520180654",

"transaction_date": "10/05/2018",

"return_period": "062018",

"source": "USER",

"total_taxable_val": 150024.85,

"total_igst_val": 18002.91,

"discount_type": null,

"total_val": 168027.76,

"tags": null,

"gst_status": null,

"gst_validation_errors": null,

}

]

SAP PI generated like this.

{"id":"amit100520180654","transaction_date":"10\/05\/2018","return_period":"062018","source":"USER","total_taxable_val":150024.85,"total_igst_val":18002.91,"total_val":168027.76,"tags":"null","gst_status":"null","gst_validation_errors":"null" }

Note: I am using PI7.5 only. In the beginning itself array format required without outer element. I have used conversion mapping table , In that with outer element array format is coming. But Clear Tax API is different.

With Regards,

Siva.

Attachments