Integration Object - Test Request - JSON request body with Arrays

Hi,

We are on 17.3. Created an integration object with url, authentication, method etc. It is a POST api and for testing, gave a sample JSON request in "Body" with "Content Type" as "JSON". The request body has arrays and therefore used "[" and "]" where applicable. But it throws an error that "Invalid Symbol found(open_bracket)". Created a text constant with json request and referenced the constant in Body. Receiving error "{"type":"www.w3.org/.../rfc2616-sec10.html","title":"Bad Request","status":400,"detail":"Invalid JSON. Can not deserialize instance of XYZ out of START_ARRAY token","instance":"/error/uuid:345354-345-345-345"}".

Any idea on how do we pass arrays in request body in integration object while testing the request ?

Please note that this may work totally fine when the integration object is referenced in process model and input request is passed as CDT. But am more keen on "Test Request" feature of "Integration Object". Does it support arrays in json?

 

Thanks & Regards,

Sathish

  Discussion posts and replies are publicly visible

Parents Reply Children
No Data