# Mapped array in HTTP module

**URL:** <https://community.make.com/t/mapped-array-in-http-module/70951>\
**Category:** Questions\
**Tags:** mapping\
**Created:** [February 22, 2025, 11:18am UTC](https://community.make.com/t/mapped-array-in-http-module/70951 "2025-02-22T11:18:12Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![AutomatIQ-Solutions](https://avatars.discourse-cdn.com/v4/letter/a/35a633/32.png) [@AutomatIQ-Solutions](https://community.make.com/u/AutomatIQ-Solutions)\
**Post date:** [February 22, 2025, 11:18am UTC](https://community.make.com/t/mapped-array-in-http-module/70951/1 "2025-02-22T11:18:13Z")

</div>

Hi everyone,  
I’m building a scenario that creates a vector embedding through the OpenAI embedding API and this embedding then should be stored in a pinecone database.

The problem I’m having is, that whenever I map the output of the embedding API(which is a very long array, with 1536 different numbers to be precise) the input of the HTTP module, that sends it to pinecone doesn’t apear to be an array anymore, which leads to the error I attached.

I also attached the output of the parse JSON module, which shows its an array and then the input of the HTTP module, where I mapped the output and all of a sudden its not an array anymore.  
And the last image is what I put as request body in the HTTP module.

If I manually take the output of the parse JSON module(the long array) and send it in the request body, everything works out fine. I just get the error message as soon as I map the output.

Help would be greatly appreciated.

 ![Error http-pinecone module](https://europe1.discourse-cdn.com/flex013/uploads/make/original/3X/8/9/895c2ffdf85066d9eabb7b404c03399f2bb8fd88.png)  
 ![Output parse JSON](https://europe1.discourse-cdn.com/flex013/uploads/make/original/3X/d/0/d03a36bd5c8073e52bba184e67ac5a3e118ee5db.png)  
 ![Input bundle pinecone module](https://europe1.discourse-cdn.com/flex013/uploads/make/original/3X/2/7/273781083b744d25438d74db24b200a95ef5933b.png)  
 ![mapped body pinecone](https://europe1.discourse-cdn.com/flex013/uploads/make/original/3X/6/1/61134508c2e75b90d0f1fbbba89af24940c4b02f.png)

---

<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:** [February 23, 2025, 9:45am UTC](https://community.make.com/t/mapped-array-in-http-module/70951/2 "2025-02-23T09:45:39Z")

</div>

Welcome to the Make community!

Did you forget to put quotes around the variable, if a string is expected?

`"vector": " ",`

Hope this helps! Let me know if there are any further questions or issues.

— @samliew

P.S.: Investing some effort into the [Make Academy](https://academy.make.com) will save you lots of time and frustration using Make.

---

<div class="post-metadata">

**Author:** ![AutomatIQ-Solutions](https://avatars.discourse-cdn.com/v4/letter/a/35a633/32.png) [@AutomatIQ-Solutions](https://community.make.com/u/AutomatIQ-Solutions)\
**Post date:** [February 23, 2025, 12:50pm UTC](https://community.make.com/t/mapped-array-in-http-module/70951/3 "2025-02-23T12:50:13Z")

</div>

An array is expected, thats the problem. I found a workaround though, I used a text parser and put the result of the text parser in squared brackets.

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

But I’d still be interested, why I can’t map the array directly.

---

<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:** [February 23, 2025, 4:42pm UTC](https://community.make.com/t/mapped-array-in-http-module/70951/4 "2025-02-23T16:42:24Z")

</div>

> [@AutomatIQ-Solutions](#):
>
> why I can’t map the array directly.

Because in JSON, an array starts and ends with square brackets, the same way a String starts and ends with double quotes.

---

<div class="post-metadata">

**Author:** ![AutomatIQ-Solutions](https://avatars.discourse-cdn.com/v4/letter/a/35a633/32.png) [@AutomatIQ-Solutions](https://community.make.com/u/AutomatIQ-Solutions)\
**Post date:** [February 24, 2025, 12:43pm UTC](https://community.make.com/t/mapped-array-in-http-module/70951/5 "2025-02-24T12:43:37Z")

</div>

Yes I understand that, but the problem is, that the output of the parse JSON module is an array, which I can map into the http module, but when I run it then, I get an error, showing that its not an array. And when I then check the input bundle, I can see its just a string and not an array anymore.

---

<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:** [February 24, 2025, 1:04pm UTC](https://community.make.com/t/mapped-array-in-http-module/70951/6 "2025-02-24T13:04:37Z")

</div>

While the output of the parse JSON module is an array, mapping the variable into a text field converts it into a comma-separated string.

In JSON, to define an array, you still need to insert the square brackets around the items.

---

<div class="post-metadata">

**Author:** ![csfautomate](https://avatars.discourse-cdn.com/v4/letter/c/f08c70/32.png) [@csfautomate](https://community.make.com/u/csfautomate)\
**Post date:** [March 15, 2025, 1:25am UTC](https://community.make.com/t/mapped-array-in-http-module/70951/7 "2025-03-15T01:25:18Z")

</div>

which text partser did you use and what are your settings? i’m trying to do the same thing and would like to understand your work around more please.

---

<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:** [March 15, 2025, 1:53am UTC](https://community.make.com/t/mapped-array-in-http-module/70951/8 "2025-03-15T01:53:21Z")

</div>

Welcome to the Make community!

> [@csfautomate](#):
>
> which text partser did you use and what are your settings? i’m trying to do the same thing

Welcome to the Make community!

While it’s tempting to continue an existing thread, a more effective approach would be to start a new topic. It helps other community users to assist with **your scenario** , and keeps our space organised for everyone. If you start a new conversation you are also more likely to get help from other users. You can refer others back to a related topic by including that link in your question. Thank you for understanding and keeping our community neat and tidy.

The “New Topic” link can be found in the top-right of the header:

 ![](https://europe1.discourse-cdn.com/flex013/uploads/make/original/3X/1/9/19db8a73cb15fc814d547cb51182fb0b856f453a.png)

Thanks!

— @samliew

P.S.: Investing some effort into the [Make Academy](https://academy.make.com) will save you lots of time and frustration using Make.

---

<div class="post-metadata">

**Author:** ![csfautomate](https://avatars.discourse-cdn.com/v4/letter/c/f08c70/32.png) [@csfautomate](https://community.make.com/u/csfautomate)\
**Post date:** [March 15, 2025, 2:16am UTC](https://community.make.com/t/mapped-array-in-http-module/70951/9 "2025-03-15T02:16:52Z")

</div>

this dude is doing exactly what i was doing was hoping since it’s less than a month old that the thread might not be dead yet but ok i will do that

---

<div class="post-metadata">

**Author:** ![AutomatIQ-Solutions](https://avatars.discourse-cdn.com/v4/letter/a/35a633/32.png) [@AutomatIQ-Solutions](https://community.make.com/u/AutomatIQ-Solutions)\
**Post date:** [March 20, 2025, 9:15am UTC](https://community.make.com/t/mapped-array-in-http-module/70951/10 "2025-03-20T09:15:20Z")

</div>

![image](https://europe1.discourse-cdn.com/flex013/uploads/make/original/3X/0/7/0741740684e07aaf1f6f88901d0279a7c4541e66.png)

This is the parser with the regex I used. Hope that helps.

---

<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:** [June 18, 2025, 8:27am UTC](https://community.make.com/t/mapped-array-in-http-module/70951/11 "2025-06-18T08:27:30Z")

</div>

This topic was automatically closed because it's resolved or inactive. Please, start a new topic.


