# Issue with JS array stored in an Airtable long text field

**URL:** <https://community.weweb.io/t/issue-with-js-array-stored-in-an-airtable-long-text-field/15516>\
**Category:** How do I?\
**Created:** [January 22, 2025, 2:41pm UTC](https://community.weweb.io/t/issue-with-js-array-stored-in-an-airtable-long-text-field/15516 "2025-01-22T14:41:09Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![CyrilK](https://avatars.discourse-cdn.com/v4/letter/c/e480ec/32.png) [@CyrilK](https://community.weweb.io/u/CyrilK)\
**Post date:** [January 22, 2025, 2:41pm UTC](https://community.weweb.io/t/issue-with-js-array-stored-in-an-airtable-long-text-field/15516/1 "2025-01-22T14:41:09Z")

</div>

Hello everyone,

I have an issue with an array : I store it in JS format inside a long text field in Airtable.

But when I fetch the data and try to use it, Weweb considers this as a string, and I don’t know how to convert it into an array, I see nothing relevant in the integrated tools…

Thanks in advance for your help

 ![image](https://us1.discourse-cdn.com/flex016/uploads/weweb/original/2X/8/8f984d530772382986920358c3338c8a4ce14dd5.png)

---

<div class="post-metadata">

**Author:** ![Broberto](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/broberto/32/5918_2.png) [@Broberto](https://community.weweb.io/u/Broberto)\
**Post date:** [January 22, 2025, 8:50pm UTC](https://community.weweb.io/t/issue-with-js-array-stored-in-an-airtable-long-text-field/15516/2 "2025-01-22T20:50:37Z")

</div>

Use `JSON.parse([your_array_in_string_format])`

---

<div class="post-metadata">

**Author:** ![webpowl](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/webpowl/32/12249_2.png) [@webpowl](https://community.weweb.io/u/webpowl)\
**Post date:** [January 24, 2025, 3:00pm UTC](https://community.weweb.io/t/issue-with-js-array-stored-in-an-airtable-long-text-field/15516/3 "2025-01-24T15:00:12Z")

</div>

Use `JSON.parse()` to convert the string back into an array after fetching the data. Just make sure the string is properly formatted JSON. It should help you work with the data as an array in Weweb.

---

<div class="post-metadata">

**Author:** ![CyrilK](https://avatars.discourse-cdn.com/v4/letter/c/e480ec/32.png) [@CyrilK](https://community.weweb.io/u/CyrilK)\
**Post date:** [January 28, 2025, 12:17pm UTC](https://community.weweb.io/t/issue-with-js-array-stored-in-an-airtable-long-text-field/15516/4 "2025-01-28T12:17:57Z")

</div>

Thank you @Broberto and @webpowl for your help ! It works perfectly
