# ERROR: All returned items have to contain a property named "json"!

**URL:** <https://community.n8n.io/t/error-all-returned-items-have-to-contain-a-property-named-json/7481>\
**Category:** Questions\
**Created:** [August 26, 2021, 12:52pm UTC](https://community.n8n.io/t/error-all-returned-items-have-to-contain-a-property-named-json/7481 "2021-08-26T12:52:57Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![zied\_hamzaoui](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/zied_hamzaoui/32/5858_2.png) [@zied\_hamzaoui](https://community.n8n.io/u/zied_hamzaoui)\
**Post date:** [August 26, 2021, 12:52pm UTC](https://community.n8n.io/t/error-all-returned-items-have-to-contain-a-property-named-json/7481/1 "2021-08-26T12:52:57Z")

</div>

how to fix it ?

```auto
let test= [];
for (item of items) {
  test.push(item.json.dataExport)
    console.log(item.json.dataExport)
    console.log(test)
}
    return test;
```

---

<div class="post-metadata">

**Author:** ![harshil1712](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/harshil1712/32/1374_2.png) [@harshil1712](https://community.n8n.io/u/harshil1712)\
**Post date:** [August 26, 2021, 1:03pm UTC](https://community.n8n.io/t/error-all-returned-items-have-to-contain-a-property-named-json/7481/2 "2021-08-26T13:03:36Z")

</div>

Hey @zied_hamzaoui!

Welcome to the community 💖

Here’s the code snippet that might work

```nohighlight
let test= [];
for (item of items) {
  test.push({json:item.json.dataExport})
    console.log(item.json.dataExport)
    console.log(test)
}
    return test;

```

Every item in the array should be returned within a JSON object. Refer this documentation to learn more about the n8n data structure: [Key concepts | Docs](https://docs.n8n.io/getting-started/key-concepts/#data-structure)

---

<div class="post-metadata">

**Author:** ![zied\_hamzaoui](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/zied_hamzaoui/32/5858_2.png) [@zied\_hamzaoui](https://community.n8n.io/u/zied_hamzaoui)\
**Post date:** [August 26, 2021, 1:13pm UTC](https://community.n8n.io/t/error-all-returned-items-have-to-contain-a-property-named-json/7481/3 "2021-08-26T13:13:40Z")

</div>

Thank u !!
