• Instructions to Ask a Question

    Click on the "Ask a Question" button and select the application for which you would like to ask questions.

    We have 5 different products namely - Pabbly Connect, Pabbly Subscription Billing, Pabbly Email Marketing, Pabbly Form Builder, Pabbly Email Verification.

    The turnaround time is 24 hrs (Business Hours - 10.00 AM to 6.00 PM IST, Except Saturday and Sunday). So your kind patience will be highly appreciated!

    🚀🚀Exclusive Discount Offer

    Just in case you're looking for any ongoing offers on Pabbly, you can check the one-time offers listed below. You just need to pay once and use the application forever -
     

    🔥 Pabbly Connect One Time Plan for $249 (🏆Lifetime Access) -  View offer 

    🔥 Pabbly Subscription Billing One Time Plan for $249 (🏆Lifetime Access) - View offer

Iterators / JSON extractor / Arrays - basics

Istvan

Member
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.
 
P

PabblyMember3

Guest
Iterator:
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:

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:
 

Istvan

Member
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 ?
 
P

PabblyMember3

Guest
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.
 

Istvan

Member
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.
 
P

PabblyMember3

Guest
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.
 
Top