# Kibana 8.4 expanded document views objects in multiple rows

**URL:** https://discuss.elastic.co/t/kibana-8-4-expanded-document-views-objects-in-multiple-rows/315252
**Category:** Kibana
**Created:** [September 27, 2022, 11:41am UTC](https://discuss.elastic.co/t/kibana-8-4-expanded-document-views-objects-in-multiple-rows/315252 "2022-09-27T11:41:16Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![Kadir\_Goktas](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kadir_goktas/32/101854_2.png) [@Kadir\_Goktas](https://discuss.elastic.co/u/Kadir_Goktas)
#### Post date: [September 27, 2022, 11:41am UTC](https://discuss.elastic.co/t/kibana-8-4-expanded-document-views-objects-in-multiple-rows/315252/1 "2022-09-27T11:41:16Z")

</div>

we have recently upgraded our stack to 8.4 and noticed that when we expand a document object fields are displayed in multiple rows as attached below;

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/7/5/75ce529c8642e683f7e9de0a78fedc28b4f0657c.png)

previously the field is displayed as a json with a toggle details which is more convenient for us to view as below

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/5/7/57b271ac71e4315cea0b50b7c3e0b5dadaa71cbc.png)

Is there a way to configure kibana to display object fields as a json in a single row?

---

<div class="post-metadata">

### Author: ![Marta\_Bondyra](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/marta_bondyra/32/102122_2.png) [@Marta\_Bondyra](https://discuss.elastic.co/u/Marta_Bondyra)
#### Post date: [September 27, 2022, 12:25pm UTC](https://discuss.elastic.co/t/kibana-8-4-expanded-document-views-objects-in-multiple-rows/315252/2 "2022-09-27T12:25:32Z")

</div>

Hey there,

1. When in discover, click on the icon from the left side of the document (selected on screenshot)
2. Click on 'JSON' to see the JSON view when in Expanded document view.

Would it solve it?

 ![Screenshot 2022-09-27 at 14.23.57](https://us1.discourse-cdn.com/elastic/original/3X/8/3/839a18e0c06ea1d0211180e372e3aad44a8aa038.jpeg)

---

<div class="post-metadata">

### Author: ![Kadir\_Goktas](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kadir_goktas/32/101854_2.png) [@Kadir\_Goktas](https://discuss.elastic.co/u/Kadir_Goktas)
#### Post date: [September 27, 2022, 12:33pm UTC](https://discuss.elastic.co/t/kibana-8-4-expanded-document-views-objects-in-multiple-rows/315252/3 "2022-09-27T12:33:01Z")

</div>

Hi Marta,

that is the workaround we are using right now, but it is not convenient as seeing object as json in a single row at once.

i have searched through configuration parameters but couldn't find one to display the objects in a single line.

right now, it seems like kibana is flattening the object fields in an array on its own and it definitely look weird.

for ex, if you have an arry like { x:[{ a: 10, b:20 }, { a:11, b:21}, {a:12, b:22}]}. it displays in rows like below;

```auto
x.a: 10,11,12
x.b: 20,21,22

```

isn't it possible with kibana 8.4?

---

<div class="post-metadata">

### Author: ![matw](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/matw/32/13913_2.png) [@matw](https://discuss.elastic.co/u/matw)
#### Post date: [September 27, 2022, 1:01pm UTC](https://discuss.elastic.co/t/kibana-8-4-expanded-document-views-objects-in-multiple-rows/315252/4 "2022-09-27T13:01:22Z")

</div>

Hi  
I'm interested in the previous version of Kibana you were using? And what's your setting of discover:searchFieldsFromSource?

 ![Bildschirmfoto 2022-09-27 um 15.00.29](https://us1.discourse-cdn.com/elastic/original/3X/7/9/79661b7a1981f5f0f82668d5847d61ae31e3a4a0.png)  
Thx & Best,  
Matthias

---

<div class="post-metadata">

### Author: ![Kadir\_Goktas](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kadir_goktas/32/101854_2.png) [@Kadir\_Goktas](https://discuss.elastic.co/u/Kadir_Goktas)
#### Post date: [September 27, 2022, 1:25pm UTC](https://discuss.elastic.co/t/kibana-8-4-expanded-document-views-objects-in-multiple-rows/315252/5 "2022-09-27T13:25:39Z")

</div>

Hi Matthias,

The previous one is 7.7.

currently discover:searchFieldsFromSource is OFF

Regards,  
Kadir

---

<div class="post-metadata">

### Author: ![matw](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/matw/32/13913_2.png) [@matw](https://discuss.elastic.co/u/matw)
#### Post date: [September 28, 2022, 6:40am UTC](https://discuss.elastic.co/t/kibana-8-4-expanded-document-views-objects-in-multiple-rows/315252/6 "2022-09-28T06:40:41Z")

</div>

Thank you,  
could you share the mapping of productData.AmendIdnt, and maybe one sample JSON for it? Which 7.17.x is it exactly?

Many thx!  
Matthias

---

<div class="post-metadata">

### Author: ![Kadir\_Goktas](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kadir_goktas/32/101854_2.png) [@Kadir\_Goktas](https://discuss.elastic.co/u/Kadir_Goktas)
#### Post date: [September 28, 2022, 6:58am UTC](https://discuss.elastic.co/t/kibana-8-4-expanded-document-views-objects-in-multiple-rows/315252/7 "2022-09-28T06:58:57Z")

</div>

hi Matthias,

version: 7.6.2

sample json;

```auto
   {
      "AmendIdnt": [
        {
          "amendment_id": "1664258007845::235",
          "ProductAmend": [
            {
              "rms_item": "215352077",
              "ean": "",
              "season_code": 200,
              "phase_code": 1,
              "ProductAmendLocations": [
                {
                  "location_id": 4701,
                  "action": "R",
                  "selling_retail": 5.5
                },
                {
                  "location_id": 3871,
                  "action": "R",
                  "selling_retail": 6.75
                },
                {
                  "location_id": 3471,
                  "action": "R",
                  "selling_retail": 7
                },
                {
                  "location_id": 3671,
                  "action": "R",
                  "selling_retail": 64
                },
                {
                  "location_id": 3451,
                  "action": "R",
                  "selling_retail": 72
                },
                {
                  "location_id": 3351,
                  "action": "R",
                  "selling_retail": 72
                },
                {
                  "location_id": 125,
                  "action": "R",
                  "selling_retail": 64
                }
              ],
              "ProductAmendSupplier": [
                {
                  "supplier_site_id": 124174801,
                  "unit_cost": 0.001
                }
              ]
            }
          ]
        }
      ]
    }

```

mapping:

```auto
                        "AmendIdnt": {
                            "properties": {
                                "amendment_id": {
                                    "type": "text",
                                    "fields": {
                                        "keyword": {
                                            "ignore_above": 256,
                                            "type": "keyword"
                                        }
                                    }
                                },
                                "ProductAmend": {
                                    "properties": {
                                        "phase_code": {
                                            "type": "long"
                                        },
                                        "ean": {
                                            "type": "text",
                                            "fields": {
                                                "keyword": {
                                                    "ignore_above": 256,
                                                    "type": "keyword"
                                                }
                                            }
                                        },
                                        "item_desc": {
                                            "type": "text",
                                            "fields": {
                                                "keyword": {
                                                    "ignore_above": 256,
                                                    "type": "keyword"
                                                }
                                            }
                                        },
                                        "season_code": {
                                            "type": "long"
                                        },
                                        "rms_item": {
                                            "type": "text",
                                            "fields": {
                                                "keyword": {
                                                    "ignore_above": 256,
                                                    "type": "keyword"
                                                }
                                            }
                                        }
                                    }
                                }
                            }
                        }

```

Regards,  
Kadir

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)
#### Post date: [October 26, 2022, 6:59am UTC](https://discuss.elastic.co/t/kibana-8-4-expanded-document-views-objects-in-multiple-rows/315252/8 "2022-10-26T06:59:36Z")

</div>

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