# I want to create an elastic query for following response

**URL:** <https://discuss.elastic.co/t/i-want-to-create-an-elastic-query-for-following-response/198643>\
**Category:** Elasticsearch\
**Created:** [September 9, 2019, 9:19am UTC](https://discuss.elastic.co/t/i-want-to-create-an-elastic-query-for-following-response/198643 "2019-09-09T09:19:49Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![lakmina\_chathurya](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/lakmina_chathurya/32/45418_2.png) [@lakmina\_chathurya](https://discuss.elastic.co/u/lakmina_chathurya)\
**Post date:** [September 9, 2019, 9:19am UTC](https://discuss.elastic.co/t/i-want-to-create-an-elastic-query-for-following-response/198643/1 "2019-09-09T09:19:50Z")

</div>

```
{
  "items": [
{
  "data": "a",
  "status": "#FF0000",
  "level": "0",
  "children": [
    {
      "data": "b",
      "status": "#FF0000",
      "level": "1"
    },
    {
      "data": "c",
      "status": "#FF0000",
      "level": "1",
      "children": [
        {
          "data": "d",
          "status": "#FF0000",
          "level": "2"
        },
        {
          "data": "e",
          "status": "#FF0000",
          "level": "2"
        }
      ]
    }
  ]
}
  ]
}
```

---

<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 7, 2019, 9:21am UTC](https://discuss.elastic.co/t/i-want-to-create-an-elastic-query-for-following-response/198643/3 "2019-10-07T09:21:05Z")

</div>

Closed on October 7, 2019, 9:21am UTC

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