Skip to Content

PI REST adapter not displaying field with blank value in JSON output

Jan 24 at 06:49 AM


avatar image

Hi Experts

I have a scenario where I am using new REST adapter in the sender communication channel. It is Synchronous. Please note I am not using ADVANCO REST adapter.

The XML schema in PI for the response is defined as


<ID> --> Occurrence 1 (required)

<Desc> --> Occurrence 0..1 (optional)


When the output value for <Desc> is blank I don't find this element in the JSON output.


"ID" : "123"


But I want the output should be as below:


"ID" : "123",

"Desc" : ""


How to get this? Do I need to do any configuration in REST communication channel?

Please help!



10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

0 Answers