Skip to Content

JSON Object to Array as top level brackets

Jan 30 at 03:37 AM


avatar image
Former Member

Hi All,

REST ...> PI ...> SAP

We have a Synchronous requirement where Rest service expects back response as JOSN Array (top level brackets) however the standard adapter is only creating JSON object using curly braces using jettison classes and does not support top level array

Looks like we may have to go with custom adapter module to add brackets to JSON object to make it look like JSON we have the code ?

Any one with suggestions are appreciated

Thank you

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

1 Answer

Best Answer
Priyanka Anagani Jan 30 at 08:05 AM

Hi Gaurav,

In the REST sender channel, there is an option "Custom XML/JSON conversion rules". Try to enter the outer element name in the table and Array Type as true, it will give brackets instead of curly braces.



10 |10000 characters needed characters left characters exceeded