Here is the scenario: the component before the HTTP reply is outputting an array and you need this array to be returned to you using the HTTP reply component.

If you try to map the array into the response body part of the HTTP reply it will give you only the first value of the array which is probably not what you wanted. Here is a workaround to solve the problem:

  1. Do not map the incoming field into the response body part of HTTP Reply.
  2. Put a simple {{this}} into the response body field, save the task and try.

The result would also include the incoming array in the body like this:

  "message": "hello world",
  "array": [1, 2, 3, 4]