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.