# Split items

**URL:** <https://community.n8n.io/t/split-items/630>\
**Category:** Questions\
**Created:** [January 9, 2020, 9:05pm UTC](https://community.n8n.io/t/split-items/630 "2020-01-09T21:05:04Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mattias\_Larsson](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/mattias_larsson/32/293_2.png) [@Mattias\_Larsson](https://community.n8n.io/u/Mattias_Larsson)\
**Post date:** [January 9, 2020, 9:05pm UTC](https://community.n8n.io/t/split-items/630/1 "2020-01-09T21:05:04Z")

</div>

Hi

I would like to know if it is possible to split items that look like on the screenshot and repeat the nodes after once per item?

 ![Screenshot 2020-01-09 at 22.03.30](https://europe1.discourse-cdn.com/n8n/original/1X/5fc584d252c98194a79ba9a1820be6ea3afdd55f.png)

Kind regards  
Mattias

---

<div class="post-metadata">

**Author:** ![jan](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/jan/32/9_2.png) [@jan](https://community.n8n.io/u/jan)\
**Post date:** [January 9, 2020, 9:10pm UTC](https://community.n8n.io/t/split-items/630/2 "2020-01-09T21:10:53Z")

</div>

Yes, this Function-Node should do the trick:

---

<div class="post-metadata">

**Author:** ![Mattias\_Larsson](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/mattias_larsson/32/293_2.png) [@Mattias\_Larsson](https://community.n8n.io/u/Mattias_Larsson)\
**Post date:** [January 9, 2020, 9:12pm UTC](https://community.n8n.io/t/split-items/630/3 "2020-01-09T21:12:02Z")

</div>

Thanks, i will try, highly appriciated

---

<div class="post-metadata">

**Author:** ![jan](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/jan/32/9_2.png) [@jan](https://community.n8n.io/u/jan)\
**Post date:** [January 9, 2020, 9:18pm UTC](https://community.n8n.io/t/split-items/630/4 "2020-01-09T21:18:39Z")

</div>

You are welcome. Have fun!

---

<div class="post-metadata">

**Author:** ![Mattias\_Larsson](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/mattias_larsson/32/293_2.png) [@Mattias\_Larsson](https://community.n8n.io/u/Mattias_Larsson)\
**Post date:** [February 10, 2020, 8:44am UTC](https://community.n8n.io/t/split-items/630/5 "2020-02-10T08:44:13Z")

</div>

> [@jan](#):
>
> { “nodes”: [{ “parameters”: { “functionCode”: “const newItems = ;\n\nfor (const element of items[0].json) {\n newItems.push({json: element});\n}\n\nreturn newItems;” }, “name”: “Function1”, “type”: “n8n-nodes-base.function”, “typeVersion”: 1, “position”: [550, 300] } ], “connections”: {} }

Thank you working very well just needed to restart the browser!

Awsome software

---

<div class="post-metadata">

**Author:** ![ljcn](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/ljcn/32/2726_2.png) [@ljcn](https://community.n8n.io/u/ljcn)\
**Post date:** [February 16, 2021, 11:48am UTC](https://community.n8n.io/t/split-items/630/7 "2021-02-16T11:48:55Z")

</div>

@jan how can I do the same but for items inside the ‘body’?

 ![image](https://europe1.discourse-cdn.com/n8n/original/2X/0/067afd375354f250774f3e63c29961bdbc4e4877.png)

---

<div class="post-metadata">

**Author:** ![vuchl](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/vuchl/32/113_2.png) [@vuchl](https://community.n8n.io/u/vuchl)\
**Post date:** [February 16, 2021, 11:53am UTC](https://community.n8n.io/t/split-items/630/8 "2021-02-16T11:53:18Z")

</div>

in the Funtion node you can try this code:

```javascript
return Object.entries(items[0].json.body).map(([key, value]) => {
  return {
    json: value
  }
})

```
