# Why I am not able to send a JSON Array?

**URL:** <https://community.n8n.io/t/why-i-am-not-able-to-send-a-json-array/48869>\
**Category:** Questions\
**Created:** [June 21, 2024, 11:58am UTC](https://community.n8n.io/t/why-i-am-not-able-to-send-a-json-array/48869 "2024-06-21T11:58:12Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Blueli](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/blueli/32/19131_2.png) [@Blueli](https://community.n8n.io/u/Blueli)\
**Post date:** [June 21, 2024, 11:58am UTC](https://community.n8n.io/t/why-i-am-not-able-to-send-a-json-array/48869/1 "2024-06-21T11:58:12Z")

</div>

I have a simple action here, simply want to add value to a one to many field.  
I have tried [5640] or [5640,123] But it said wrong value

 ![Screenshot 2024-06-21 at 6.48.18 PM](https://europe1.discourse-cdn.com/n8n/original/3X/1/d/1da3a873b86f0226aabb580836260e870ce89ab4.png)

Below image is a screenshot when I get a record value.

 ![Screenshot 2024-06-21 at 6.48.33 PM](https://europe1.discourse-cdn.com/n8n/original/3X/1/9/19fcbe085b4eccb041e290d1ba28b9b6879356f3.png)

It is something like this

[  
977,  
978,  
979,  
980,  
983,  
982,  
981  
]

I also tried to use this as a static value. However it still saying wrong value.

 ![Screenshot 2024-06-21 at 6.56.18 PM](https://europe1.discourse-cdn.com/n8n/original/3X/1/2/1268f9fbc33d25ce43899677167edca919c7eee0.png)

Any ideas what I should do?  
Thank you very much.

---

<div class="post-metadata">

**Author:** ![n8n](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/n8n/32/196425_2.png) [@n8n](https://community.n8n.io/u/n8n)\
**Post date:** [June 21, 2024, 11:58am UTC](https://community.n8n.io/t/why-i-am-not-able-to-send-a-json-array/48869/2 "2024-06-21T11:58:13Z")

</div>

It looks like your topic is missing some important information. Could you provide the following if applicable.

- **n8n version:**
- **Database (default: SQLite):**
- **n8n EXECUTIONS\_PROCESS setting (default: own, main):**
- **Running n8n via (Docker, npm, n8n cloud, desktop app):**
- **Operating system:**

---

<div class="post-metadata">

**Author:** ![ria](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/ria/32/99251_2.png) [@ria](https://community.n8n.io/u/ria)\
**Post date:** [June 21, 2024, 1:08pm UTC](https://community.n8n.io/t/why-i-am-not-able-to-send-a-json-array/48869/3 "2024-06-21T13:08:21Z")

</div>

Hi @Blueli

Would you be able to share your workflow? 👀

---

<div class="post-metadata">

**Author:** ![Blueli](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/blueli/32/19131_2.png) [@Blueli](https://community.n8n.io/u/Blueli)\
**Post date:** [June 21, 2024, 3:43pm UTC](https://community.n8n.io/t/why-i-am-not-able-to-send-a-json-array/48869/4 "2024-06-21T15:43:19Z")

</div>

Hello

Sure,  
There is a resource on Odoo that I want to add the user ID to a one-to-many field which returns an array.

 ![Screenshot 2024-06-21 at 10.43.02 PM](https://europe1.discourse-cdn.com/n8n/original/3X/5/f/5f718ad68375c2ef35e15924e02fcb0ab6cace05.png)

Thanks

This is a simple example of my workflow.

---

<div class="post-metadata">

**Author:** ![Blueli](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/blueli/32/19131_2.png) [@Blueli](https://community.n8n.io/u/Blueli)\
**Post date:** [June 23, 2024, 4:35am UTC](https://community.n8n.io/t/why-i-am-not-able-to-send-a-json-array/48869/5 "2024-06-23T04:35:24Z")

</div>

After looking at some other thread I managed to resolve it by using something like this {{ [123] }}

---

<div class="post-metadata">

**Author:** ![system](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/system/32/195824_2.png) [@system](https://community.n8n.io/u/system)\
**Post date:** [June 30, 2024, 4:36am UTC](https://community.n8n.io/t/why-i-am-not-able-to-send-a-json-array/48869/6 "2024-06-30T04:36:24Z")

</div>

Closed on June 30, 2024, 4:36am UTC

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.
