# Creating individual object from array

**URL:** <https://community.n8n.io/t/creating-individual-object-from-array/26972>\
**Category:** Questions\
**Tags:** data-transformation, transform-object\
**Created:** [June 8, 2023, 5:31pm UTC](https://community.n8n.io/t/creating-individual-object-from-array/26972 "2023-06-08T17:31:40Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![Benjamin123](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/benjamin123/32/6187_2.png) [@Benjamin123](https://community.n8n.io/u/Benjamin123)\
**Post date:** [June 8, 2023, 5:31pm UTC](https://community.n8n.io/t/creating-individual-object-from-array/26972/1 "2023-06-08T17:31:40Z")

</div>

Hello , i would like to create an object for individual array as shown below.

Original data

 ![image](https://europe1.discourse-cdn.com/n8n/original/3X/a/9/a9bc56a37f595acc4bf3e19b0dd17de4154dd9d8.png)

Transformed data

 ![image](https://europe1.discourse-cdn.com/n8n/original/3X/b/e/be8d8b5b3ccbd72bfc6368df0a98f1cb891c63ec.png)

may i know which node do i use to convert the json array.

---

<div class="post-metadata">

**Author:** ![pemontto](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/pemontto/32/2684_2.png) [@pemontto](https://community.n8n.io/u/pemontto)\
**Post date:** [June 8, 2023, 9:54pm UTC](https://community.n8n.io/t/creating-individual-object-from-array/26972/2 "2023-06-08T21:54:39Z")

</div>

Item Lists node in split mode 👍

---

<div class="post-metadata">

**Author:** ![Benjamin123](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/benjamin123/32/6187_2.png) [@Benjamin123](https://community.n8n.io/u/Benjamin123)\
**Post date:** [June 10, 2023, 6:28pm UTC](https://community.n8n.io/t/creating-individual-object-from-array/26972/3 "2023-06-10T18:28:03Z")

</div>

actually it is not splitting the array. It is adding individual array to a new array with “fields”

---

<div class="post-metadata">

**Author:** ![MutedJam](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/mutedjam/32/70851_2.png) [@MutedJam](https://community.n8n.io/u/MutedJam)\
**Post date:** [June 12, 2023, 12:37pm UTC](https://community.n8n.io/t/creating-individual-object-from-array/26972/4 "2023-06-12T12:37:53Z")

</div>

Hi @Benjamin123, looks like you can use the Set node here. Simply add a new field with a name of `fields`, as a value you can use an expression of `{{ $json }}`.

---

<div class="post-metadata">

**Author:** ![Benjamin123](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/benjamin123/32/6187_2.png) [@Benjamin123](https://community.n8n.io/u/Benjamin123)\
**Post date:** [June 12, 2023, 5:40pm UTC](https://community.n8n.io/t/creating-individual-object-from-array/26972/5 "2023-06-12T17:40:02Z")

</div>

Hello @MutedJam , i get the result as below .

 ![image](https://europe1.discourse-cdn.com/n8n/original/3X/4/3/433e5a15131580ede7e3e1731843821709f586be.png)

---

<div class="post-metadata">

**Author:** ![MutedJam](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/mutedjam/32/70851_2.png) [@MutedJam](https://community.n8n.io/u/MutedJam)\
**Post date:** [June 13, 2023, 6:00am UTC](https://community.n8n.io/t/creating-individual-object-from-array/26972/6 "2023-06-13T06:00:08Z")

</div>

Huh, I did not expect this behaviour at all. Quickly testing this on n8n@0.230.3, the approach seems to work fine using the below workflow:

Result:

 ![image](https://europe1.discourse-cdn.com/n8n/original/3X/4/f/4f8766a518951eb512fc40a40c34a31c99e72cb3.png)

Can you confirm which version of n8n exactly you are using and share a workflow using which the problem can be reproduced please?

---

<div class="post-metadata">

**Author:** ![Benjamin123](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/benjamin123/32/6187_2.png) [@Benjamin123](https://community.n8n.io/u/Benjamin123)\
**Post date:** [June 13, 2023, 7:33pm UTC](https://community.n8n.io/t/creating-individual-object-from-array/26972/7 "2023-06-13T19:33:07Z")

</div>

i am using version 0.227. it says that i am 3 version behind.  
maybe i will try to update the version first and try out again.

 ![image](https://europe1.discourse-cdn.com/n8n/original/3X/5/f/5f80e72586fce34c8be5e3c23c53d8d5f945b1f4.png)

---

<div class="post-metadata">

**Author:** ![Benjamin123](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/benjamin123/32/6187_2.png) [@Benjamin123](https://community.n8n.io/u/Benjamin123)\
**Post date:** [June 13, 2023, 7:48pm UTC](https://community.n8n.io/t/creating-individual-object-from-array/26972/8 "2023-06-13T19:48:06Z")

</div>

strange, when i try again, it works. anyway , thanks for the guide..

 ![image](https://europe1.discourse-cdn.com/n8n/original/3X/4/9/492deb1a1d48efd52e6b39d46648af633622f4d2.png)

---

<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 20, 2023, 7:48pm UTC](https://community.n8n.io/t/creating-individual-object-from-array/26972/9 "2023-06-20T19:48:57Z")

</div>

Closed on June 20, 2023, 7:48pm UTC

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