Hi.
This is either a no-brainer that I haven’t figured out, or not doable, I think. But it’s a simple task.
I need to count the items in a JSON array, but I need to do it in a looping custom transformer, so it needs to be non-blocking.
In a custom transformer, I use a HttpCaller to get a JSON response, which includes an array of items. I may have to issue more http calls within the custom transformer, so it contains a loop back to its input.
JSONFragmenter can easily find the array items, but as features, not in a list format, so I need to use a blocking transformer like Aggregator to count them. This is no-go.
So either I need to extract the JSON array items into a list, and use ListElementCounter to find the length, or count the JSON array items in a different non-blocking way.
Does anyone have a solution for either of these tasks ?
Cheers.






