# Create JSON from an Array with 2 collections

**URL:** <https://community.make.com/t/create-json-from-an-array-with-2-collections/82545>\
**Category:** Beginner Questions\
**Tags:** arrays\
**Created:** [May 15, 2025, 4:13pm UTC](https://community.make.com/t/create-json-from-an-array-with-2-collections/82545 "2025-05-15T16:13:19Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jamhjoom](https://avatars.discourse-cdn.com/v4/letter/j/35a633/32.png) [@Jamhjoom](https://community.make.com/u/Jamhjoom)\
**Post date:** [May 15, 2025, 4:13pm UTC](https://community.make.com/t/create-json-from-an-array-with-2-collections/82545/1 "2025-05-15T16:13:19Z")

</div>

Hello! I’m new to [make.com](http://make.com)  
I am trying to use [make.com](http://make.com) to create multiple videos using creatomate, then stitch them together at the end.

To stitch the videos, I need a list of all the URLs of the generated videos from previous steps. I have to send that as a JSON payload to creatomate.

MY GOAL NOW: gather all of the URLs of the videos generated by creatomate, so I can build the JSON payload.

MY PROBLEM: I cant’t figure out how to create a JSON that uses the URL values from the output of the previous array aggregator as input (see screenshot). This array can vary in size. I don’t care about the array particularly, I just need a way to collect all of the URLs from the creatomate step and feed them into my JSON creation step.

I am also attaching my blueprint.

 ![Screenshot 2025-05-15 at 12.00.39 PM](https://europe1.discourse-cdn.com/flex013/uploads/make/original/3X/7/5/7504195238082c95f4377b5e15d7151c9236e524.png)

---

<div class="post-metadata">

**Author:** ![Jamhjoom](https://avatars.discourse-cdn.com/v4/letter/j/35a633/32.png) [@Jamhjoom](https://community.make.com/u/Jamhjoom)\
**Post date:** [May 15, 2025, 4:20pm UTC](https://community.make.com/t/create-json-from-an-array-with-2-collections/82545/2 "2025-05-15T16:20:00Z")

</div>

Hello! I’m new to [make.com](http://make.com)  
I am trying to use [make.com](http://make.com) to create multiple videos using creatomate, then stitch them together at the end.

To stitch the videos, I need a list of all the URLs of the generated videos from previous steps. I have to send that as a JSON payload to creatomate.

MY GOAL NOW: gather all of the URLs of the videos generated by creatomate, so I can build the JSON payload.

MY PROBLEM: I cant’t figure out how to create a JSON that uses the URL values from the output of the previous array aggregator as input (see screenshot). This array can vary in size. I don’t care about the array particularly, I just need a way to collect all of the URLs from the creatomate step and feed them into my JSON creation step.

I am also attaching my blueprint. Note that I have a couple of steps that write to a google sheet, this is just for tracking purposes. The goal is really just to be able to use ALL the URLs generated by creatomate as input to a single JSON payload.

TY in advance!

 ![Screenshot 2025-05-15 at 12.00.39 PM](https://europe1.discourse-cdn.com/flex013/uploads/make/original/3X/7/5/7504195238082c95f4377b5e15d7151c9236e524.png)

---

<div class="post-metadata">

**Author:** ![Probotic\_Solutions](https://dub1.discourse-cdn.com/flex013/user_avatar/community.make.com/probotic_solutions/32/73347_2.png) [@Probotic\_Solutions](https://community.make.com/u/Probotic_Solutions)\
**Post date:** [May 15, 2025, 7:23pm UTC](https://community.make.com/t/create-json-from-an-array-with-2-collections/82545/3 "2025-05-15T19:23:25Z")

</div>

Hello,  
Try using Transform to JSON and Map URL array.

 ![image](https://europe1.discourse-cdn.com/flex013/uploads/make/original/3X/2/8/28bf628ed54ceaf50b95b5649a2640a102742ef5.png)

---

<div class="post-metadata">

**Author:** ![Jamhjoom](https://avatars.discourse-cdn.com/v4/letter/j/35a633/32.png) [@Jamhjoom](https://community.make.com/u/Jamhjoom)\
**Post date:** [May 15, 2025, 11:24pm UTC](https://community.make.com/t/create-json-from-an-array-with-2-collections/82545/4 "2025-05-15T23:24:42Z")

</div>

Thanks for your reply. When I do that, I only see the last item from the array:

 ![Screenshot 2025-05-15 at 7.23.56 PM](https://europe1.discourse-cdn.com/flex013/uploads/make/original/3X/5/9/59a340b676912189fe37d5d71aef54a2009572f5.png)

---

<div class="post-metadata">

**Author:** ![Jonathan\_Quarics](https://avatars.discourse-cdn.com/v4/letter/j/f6c823/32.png) [@Jonathan\_Quarics](https://community.make.com/u/Jonathan_Quarics)\
**Post date:** [May 16, 2025, 12:32am UTC](https://community.make.com/t/create-json-from-an-array-with-2-collections/82545/5 "2025-05-16T00:32:21Z")

</div>

If you need a JSON like this:

```auto
[
    {
        "URL": "url1"
    },
    {
        "URL": "url2"
    },
    {
        "URL": "url3"
    }
]

```

You can add a **Text Aggergator** module after the **Creatomate** module, with a comma `,` as separator

 ![Screenshot 2025-05-15 213118](https://europe1.discourse-cdn.com/flex013/uploads/make/original/3X/f/7/f763399cb661771b09549f06f855c1679b4f1200.png)

Then you can add it inside a `[]` on a **Parse JSON** module

---

<div class="post-metadata">

**Author:** ![Jamhjoom](https://avatars.discourse-cdn.com/v4/letter/j/35a633/32.png) [@Jamhjoom](https://community.make.com/u/Jamhjoom)\
**Post date:** [May 16, 2025, 1:54am UTC](https://community.make.com/t/create-json-from-an-array-with-2-collections/82545/6 "2025-05-16T01:54:25Z")

</div>

Thank you for helping. I tried your suggestion, but the text aggregator runs them as separate operations, instead of a single operation with a single JSON text containing the 2 URLs

What am I missing to create a single JSON output containing all the URLs?

 ![Screenshot 2025-05-15 at 9.52.22 PM](https://europe1.discourse-cdn.com/flex013/uploads/make/original/3X/9/9/993b23fa9b11b3f54b2a73185e83e4fa3e867bfa.jpeg)

---

<div class="post-metadata">

**Author:** ![Jonathan\_Quarics](https://avatars.discourse-cdn.com/v4/letter/j/f6c823/32.png) [@Jonathan\_Quarics](https://community.make.com/u/Jonathan_Quarics)\
**Post date:** [May 16, 2025, 2:42am UTC](https://community.make.com/t/create-json-from-an-array-with-2-collections/82545/7 "2025-05-16T02:42:23Z")

</div>

It runs twice because something behind the **Creatomate** module is returning 2 bundles and is connected to the **Array Aggregator** , to make it run once you have to connect the **Array Aggregator** or the **Text Aggregator** to that module to grab those bundles before they run one at a time

---

<div class="post-metadata">

**Author:** ![Jamhjoom](https://avatars.discourse-cdn.com/v4/letter/j/35a633/32.png) [@Jamhjoom](https://community.make.com/u/Jamhjoom)\
**Post date:** [May 16, 2025, 3:22am UTC](https://community.make.com/t/create-json-from-an-array-with-2-collections/82545/8 "2025-05-16T03:22:18Z")

</div>

I’m not following what you mean by something behind the creatomate module.  
Would you be so kind as to share a screenshot?

---

<div class="post-metadata">

**Author:** ![Jamhjoom](https://avatars.discourse-cdn.com/v4/letter/j/35a633/32.png) [@Jamhjoom](https://community.make.com/u/Jamhjoom)\
**Post date:** [May 16, 2025, 5:30am UTC](https://community.make.com/t/create-json-from-an-array-with-2-collections/82545/9 "2025-05-16T05:30:28Z")

</div>

Hi  
I managed to figure it out. For anyone else:

creatomate → array aggregator (with creatomate as source) → iterator → text aggregator (with the earlier parsed JSON step as source).

---

<div class="post-metadata">

**Author:** ![Greatness\_Solutions](https://dub1.discourse-cdn.com/flex013/user_avatar/community.make.com/greatness_solutions/32/93374_2.png) [@Greatness\_Solutions](https://community.make.com/u/Greatness_Solutions)\
**Post date:** [May 16, 2025, 11:38am UTC](https://community.make.com/t/create-json-from-an-array-with-2-collections/82545/10 "2025-05-16T11:38:39Z")

</div>

If you have the array list, use Chatgpt by creating a chat completion. You can use a prompt like this, for example:

"Create a JSON string based on this array using the following format:

[  
{  
“Video1url”: video 1 data  
},  
{  
“Video2url”: video 2 data  
},  
{  
“Video3url”: video 3 data  
}

]

---

<div class="post-metadata">

**Author:** ![samliew](https://dub1.discourse-cdn.com/flex013/user_avatar/community.make.com/samliew/32/13327_2.png) [@samliew](https://community.make.com/u/samliew)\
**Post date:** [May 21, 2025, 8:33am UTC](https://community.make.com/t/create-json-from-an-array-with-2-collections/82545/11 "2025-05-21T08:33:49Z")

</div>

Welcome to the Make community!

## Setting the Correct Aggregator Source

You need to set the “ **Source Module** ” field of the aggregator to **where the bundles are coming from**. This is usually an **iterator** module, but can also be a search/list/repeater module, or even the trigger module!

 ![](https://europe1.discourse-cdn.com/flex013/uploads/make/original/3X/6/5/658850f6135a12cb99f684ea85b83a529e11b97d.png)

## Combining Bundles Using Aggregators

Every result (item/record) from trigger/iterator/list/search/match modules will output a bundle. This can result in multiple bundles, which then trigger multiple operations in future modules (one operation per bundle). To “combine” multiple bundles into a single variable, you’ll need to use an aggregator of some sort.

[Aggregators](https://www.make.com/en/help/modules/aggregator.html) are modules that accumulate multiple bundles into one single bundle. An example of a commonly-used aggregator module is the [**Array aggregator**](https://www.make.com/en/help/tools/flow-control.html#array-aggregator) module. The next popular aggregator is the [**Text Aggregator**](https://www.make.com/en/help/tools/tools.html#text-aggregator) which is very flexible and can apply to many use-cases like building of JSON, CSV, HTML.

You can find out more about the other types of aggregator modules here:

- [Array aggregator](https://www.make.com/en/help/tools/flow-control.html#array-aggregator)
- [Text aggregator](https://www.make.com/en/help/tools/tools.html#text-aggregator)
- [Numeric aggregator](https://www.make.com/en/help/tools/tools.html#numeric-aggregator)
- [Table aggregator](https://www.make.com/en/help/tools/tools.html#table-aggregator)
- [JSON aggregator](https://www.make.com/en/help/tools/json.html#aggregate-to-json)
- [CSV aggregator](https://www.make.com/en/help/apps/file-and-document-management/csv.html#create-csv)
- [Archive (ZIP) aggregator](https://www.make.com/en/help/apps/built-in-apps/archive.html#create-an-archive-973677)
- _other app-specific aggregators_

**Question:** Which is the best aggregator do you think you’ll need for your use-case?

## Mapping a Specific Structure Into a Complex Field

If you have an array of collections, in programming terms, this is called an array of objects, or an array with non-primitive data types (“complex”).

The **Array Aggregator** module is very powerful because it allows you to build a new **complex array of collections** that matches a later module’s field to map multiple items (collections) to it. Such fields initially would allow you to manually add items, but you can toggle the “Map” switch to the “on” state and map a whole array into a single field.

This is done by selecting the “ **Target structure type** ” in an Array Aggregator module.

 ![](https://europe1.discourse-cdn.com/flex013/uploads/make/original/3X/b/e/bea4ecffec9daf39ca9cba77c0b2a40d160e7292.png)

As you can see from the above example, the “Map” toggle on complex fields are used when you have an array variable (like from an array aggregator). Other combinations of modules may also allow you to generate an array that matches a future field’s array structure, like “Aggregate to JSON + Parse JSON”, or “Create JSON + Parse JSON”, but this is an advanced topic.

**Question:** Are you mapping your array into a field that accepts more than one item/collection?

For more information, see “[Mapping with arrays](https://help.make.com/mapping-arrays)” in the Help Centre. You should also do the [Make Academy](https://academy.make.com), which also covers the use of [Iterators & Aggregators](https://academy.make.com/courses/IntermediateC01).

Hope this helps! Let me know if there are any further questions or issues. P.S.: investing some effort into the tutorials in the [Make Academy](https://academy.make.com) will save you lots of time and frustration using Make!

— @samliew

---

<div class="post-metadata">

**Author:** ![Make\_Bot](https://dub1.discourse-cdn.com/flex013/user_avatar/community.make.com/make_bot/32/14661_2.png) [@Make\_Bot](https://community.make.com/u/Make_Bot)\
**Post date:** [August 19, 2025, 8:47am UTC](https://community.make.com/t/create-json-from-an-array-with-2-collections/82545/12 "2025-08-19T08:47:31Z")

</div>


