• Instructions to Ask a Question

    For any assistance, please click the "Ask a Question" button and select the Pabbly product for which you require support.

    We offer seven comprehensive applications designed to help you efficiently manage and grow your business:

    Our support team endeavors to respond within 24 business hours (Monday to Friday, 10:00 AM to 6:00 PM IST). We appreciate your understanding and patience.

    🚀 Exclusive Lifetime Offers 🚀

    We invite you to take advantage of our special one-time payment plans, providing lifetime access to select applications:

    • 🔥 Pabbly Connect — Lifetime Access for $249View Offer
    • 🔥 Pabbly Subscription Billing — Lifetime Access for $249View Offer
    • 🔥 Pabbly Chatflow — Lifetime Access for $249View Offer

    Make a one-time investment and enjoy the advantages of robust business management tools for years to come.

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