# Array of json are rendered as \[\[object Object\]\]

**URL:** <https://community.forestadmin.com/t/array-of-json-are-rendered-as-object-object/7344>\
**Category:** Help me!\
**Created:** [July 20, 2024, 6:08am UTC](https://community.forestadmin.com/t/array-of-json-are-rendered-as-object-object/7344 "2024-07-20T06:08:27Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Quentin\_Somerville1](https://dub1.discourse-cdn.com/flex013/user_avatar/community.forestadmin.com/quentin_somerville1/32/7114_2.png) [@Quentin\_Somerville1](https://community.forestadmin.com/u/Quentin_Somerville1)\
**Post date:** [July 20, 2024, 6:08am UTC](https://community.forestadmin.com/t/array-of-json-are-rendered-as-object-object/7344/1 "2024-07-20T06:08:27Z")

</div>

## Feature(s) impacted

Display of Array of json fields as `[[object Object]]`

## Observed behavior

I see in the column `[[object Object]]`

## Expected behavior

I want to see something like `[{“my-key”: “my-value”}]

## Failure Logs

 ![image](https://europe1.discourse-cdn.com/flex013/uploads/forest/original/2X/5/56df77616a0aefcba9566965086da80f17de0a01.png)

In the database I have an array of json (format in db looks good)

## Context

- Project name: Roundtable
- Team name: -
- Environment name: All
- Agent technology: nodejs
- Agent (forest package) name & version: last version
- Database type: postgres
- Recent changes made on your end if any: -

---

<div class="post-metadata">

**Author:** ![Alban\_Bertolini](https://dub1.discourse-cdn.com/flex013/user_avatar/community.forestadmin.com/alban_bertolini/32/1077_2.png) [@Alban\_Bertolini](https://community.forestadmin.com/u/Alban_Bertolini)\
**Post date:** [July 23, 2024, 7:03am UTC](https://community.forestadmin.com/t/array-of-json-are-rendered-as-object-object/7344/3 "2024-07-23T07:03:39Z")

</div>

Hello @Quentin_Somerville1 ,  
Indeed we have an issue with JSON of array. We will investigate the issue. I’come back very soon.

---

<div class="post-metadata">

**Author:** ![Alban\_Bertolini](https://dub1.discourse-cdn.com/flex013/user_avatar/community.forestadmin.com/alban_bertolini/32/1077_2.png) [@Alban\_Bertolini](https://community.forestadmin.com/u/Alban_Bertolini)\
**Post date:** [July 23, 2024, 10:33am UTC](https://community.forestadmin.com/t/array-of-json-are-rendered-as-object-object/7344/4 "2024-07-23T10:33:47Z")

</div>

Hello again,  
Unfortunately we doesn’t support array of json in postgresql.  
But you can use the [addField](https://docs.forestadmin.com/developer-guide-agents-nodejs/agent-customization/fields/computed) customization to display it as a JSON in readOnly !

```javascript
.addField('myJsonColumn', {
      columnType: 'Json',
      dependencies: ['myArray'],
      getValues: records => {
        return records.map(r => {
          return r.myArray.map((a) => {
            return JSON.stringify(a);
          });
        });
      },
    });

```

Let me know if my proposal can help you 🙏

---

<div class="post-metadata">

**Author:** ![Alban\_Bertolini](https://dub1.discourse-cdn.com/flex013/user_avatar/community.forestadmin.com/alban_bertolini/32/1077_2.png) [@Alban\_Bertolini](https://community.forestadmin.com/u/Alban_Bertolini)\
**Post date:** [July 23, 2024, 10:34am UTC](https://community.forestadmin.com/t/array-of-json-are-rendered-as-object-object/7344/5 "2024-07-23T10:34:59Z")

</div>

You can expect this view with my given trick  
 ![image](https://europe1.discourse-cdn.com/flex013/uploads/forest/original/2X/8/893431d6b669325829f630a8029148f7450941c9.png)

---

<div class="post-metadata">

**Author:** ![Quentin\_Somerville1](https://dub1.discourse-cdn.com/flex013/user_avatar/community.forestadmin.com/quentin_somerville1/32/7114_2.png) [@Quentin\_Somerville1](https://community.forestadmin.com/u/Quentin_Somerville1)\
**Post date:** [July 26, 2024, 11:42pm UTC](https://community.forestadmin.com/t/array-of-json-are-rendered-as-object-object/7344/6 "2024-07-26T23:42:04Z")

</div>

That seems good thanks @Alban_Bertolini !
