Data Action response is wrapped in brackets [ ] and because of this JSON failed output schema validation

Hello All,

For the following data action, the execute step works and does return the data/response but it is wrapped in a brackets [ ] (in a start and at the end) which I believe prevents GC to read this as an Object:

image

image

image

My attempt to trim first and last characters:

{
  "translationMap": {},
  "translationMapDefaults": {},
  "successTemplate": "${rawResult}.substring(2, ${rawResult}.length()-1))"
}

Still the same, please advise.

This seemed to work for me:

$rawResult.substring(1, $rawResult.length()))

This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.