# Watcher parse an array

**URL:** <https://discuss.elastic.co/t/watcher-parse-an-array/220777>\
**Category:** Elasticsearch\
**Created:** [February 25, 2020, 6:27am UTC](https://discuss.elastic.co/t/watcher-parse-an-array/220777 "2020-02-25T06:27:21Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![cmiscloni](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/cmiscloni/32/63250_2.png) [@cmiscloni](https://discuss.elastic.co/u/cmiscloni)\
**Post date:** [February 25, 2020, 9:20am UTC](https://discuss.elastic.co/t/watcher-parse-an-array/220777/4 "2020-02-25T09:20:30Z")

</div>

The result of this watcher execution

> ```
> "ctx.payload.hits.total": 2
> foreach object [ctx.payload.hits.hits] was an empty list, could not run any action
> 
> ```

---

_[View the full topic](https://discuss.elastic.co/t/watcher-parse-an-array/220777)._
