Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 2806

JSON to XML conversion error for REST receiver adapter

$
0
0

Hi All,


I am currently working on a Proxy to REST (synchronous) scenario, and using SAP's REST adapter in the receiver communication channel.

 

PI is sending the request to REST URL in JSON format. For multiple record PI channel is generating JSON in correct format but when we are sending request with single record PI channel is not generating “[ “ (square bracket) for an array field as required in JSON format.

 

 

 

Below is the required JSON format:

 

 

{

"A": "abc",

"B": "def",

"C": TRUE,

"Items": [

       

        { "T": "123ASD", "c": false }

 

    ]

 

}

 

Below is the JSON generated by PI:

 

{

"A": "abc",

"B": "def",

"C": TRUE,

"Items":              

{ "T": "123ASD", "c": false }

 

   }

 

Please suggest.


Viewing all articles
Browse latest Browse all 2806

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>