Iterators / JSON extractor / Arrays - basics
Status: Closed · Asked by Istvan on · 0 views
Hello,
I apologize for the basic question.
I’ve watched some videos, but I’m not sure how it works.
What is the difference between Iterator / JSON extractor / Array if the input is JSON?
Which one is practical to use in which case?
If I want to concatenate all elements of a JSON level, which one should I use?
Does the Action following the Iterator run multiple times (Iterator = While programming cycle)?
Thanks.
An iterator converts each collection of items into individual separate bundles, and in doing so, you can process each element in the collection separately and exactly as you need.
Please watch this video:
youtube.com/watch?v=zJaGQ-SIB0I
JSON Extractor:
JSON Extractor is also a specific module that works on Array of JSON object (values enclosed in curly brackets {} ) as shown in below example.
Ex: {["val1","val2,"val3"...]} JSON Extractor will convert this in
result>0 : val1
result>1 : val2
result>2 : val3
...
It extracts each value as shown above and can be used in further steps of your workflow.
Watch this video:
Thanks.
Iterator
Yes I saw this video.
Okay, Iterator goes through each element of a given level and invokes the next Action with the current element.
What happens to the 2nd, 3rd, .. Action following the iterator?
Do they run the same number of times?
JSON extractor
Ok, this split a specific level of JSON.
Array ?
Thanks.Iterator
Yes I saw this video.
Okay, Iterator goes through each element of a given level and invokes the next Action with the current element.
What happens to the 2nd, 3rd, .. Action following the iterator?
Do they run the same number of times?JSON extractor
Ok, this split a specific level of JSON.Array ?
Array creation inside the Pabbly Connect is not available. However, the array can be accepted in a response if you turn off the Simple Response switch of any module.
What happens to the 2nd, 3rd, .. Action following the iterator?
Do they run the same number of times?
Array
I saw a video about Array too.
JSON is also a special array.
I would be interested in ideas, differences, use cases and best practices.
Iterator
What happens to the 2nd, 3rd, .. Action following the iterator?
Do they run the same number of times?Array
I saw a video about Array too.
JSON is also a special array.
I would be interested in ideas, differences, use cases and best practices.
The steps below the iterator will be executed for each values.