Skip to Content
avatar image
Former Member

JSON Object to Array as top level brackets

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

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Best Answer
    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.

    Regards,

    Priyanka

    Add comment
    10|10000 characters needed characters exceeded