cancel
Showing results for 
Search instead for 
Did you mean: 

JSON Object to Array as top level brackets

Former Member
0 Kudos

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 Array...do we have the code ?

Any one with suggestions are appreciated

Thank you

Accepted Solutions (1)

Accepted Solutions (1)

PriyankaAnagani
Active Contributor
0 Kudos

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.

Regards,

Priyanka

Answers (0)