Skip to main content
Question

JSONFlattener w/ Arguments

  • December 22, 2017
  • 1 reply
  • 33 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.

This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.

1 reply

danilo_fme
Celebrity
Forum|alt.badge.img+52
  • Celebrity
  • 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