# Visualizing nested objects

**URL:** https://discuss.elastic.co/t/visualizing-nested-objects/60962
**Category:** Kibana
**Created:** [September 20, 2016, 5:39am UTC](https://discuss.elastic.co/t/visualizing-nested-objects/60962 "2016-09-20T05:39:42Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![rpazhyannur](https://avatars.discourse-cdn.com/v4/letter/r/f07891/32.png) [@rpazhyannur](https://discuss.elastic.co/u/rpazhyannur)
#### Post date: [September 20, 2016, 5:39am UTC](https://discuss.elastic.co/t/visualizing-nested-objects/60962/1 "2016-09-20T05:39:42Z")

</div>

Hello...

I realized that there is no/limited support for aggregation on nested objects but I am hoping that there is a workaround for my problem.

My JSON document looks like

# id 1

"aps": {

```
  "mac": "36",
  "radio": [
    {
      "slot": 0,
      "count": 10
    },
    {
      "slot": 1,
      "count": 100
    }
  ]

```

}

# id 2

"aps": {  
"mac": "36",  
"radio": [  
{  
"slot": 0,  
"count": 30  
},  
{  
"slot": 1,  
"count": 300  
}  
]  
}

I would like to perform an aggregation on these documents. For example,

compute the average value of count but split it based on slot.

So with the above I would get two values

avg\_slot\_0 = 20

avg\_slot\_1 = 200

Is there a way to do this?

I do realize that I can make this work by splitting each document and storing it based on each radio but for various reasons I cannot do that.

I am hoping to make it work without splitting.

Thanks in advance.

---

<div class="post-metadata">

### Author: ![James\_Yin](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/james_yin/32/17428_2.png) [@James\_Yin](https://discuss.elastic.co/u/James_Yin)
#### Post date: [April 18, 2017, 6:40am UTC](https://discuss.elastic.co/t/visualizing-nested-objects/60962/2 "2017-04-18T06:40:54Z")

</div>

it seems kibana doesn't yet deal with nesting or parent/child object.

---

<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: [July 6, 2017, 1:32pm UTC](https://discuss.elastic.co/t/visualizing-nested-objects/60962/3 "2017-07-06T13:32:15Z")

</div>


