Skip to main content
Question

JSONFlattener w/ Arguments

  • December 22, 2017
  • 1 reply
  • 16 views

Forum|alt.badge.img

Hello: I have a surveymonkey survey responses that I have to loop through to capture all of the responses from 1 page. I capture the number of responses from an attribute returned from the GET from the API endpoint and I use that as my loop counter. My question is can I loop through the response body and pass the loop counter to capture the next survey response on this page? For instance, if I have data{}.id as an attribute, in a JSONFlattener can I dynamically set the value within the {} to @Value_count? Any help is greatly appreciated.

1 reply

danilo_fme
Evangelist
Forum|alt.badge.img+44
  • Evangelist
  • December 22, 2017

Hi @bcrowley10,

For the count the number os elements of a list you can use the transformer ListElementCounter.

You can try to use before the transformer JSONFlattener.

Thanks,

Danilo


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings