Skip to Content

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

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

<DataResponse>

<ID> --> Occurrence 1 (required)

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

</DataRespomse>

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!

Regards

Gopal

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

0 Answers