# Extracting text from object using mustache template

**URL:** <https://discourse.nodered.org/t/extracting-text-from-object-using-mustache-template/79370>\
**Category:** General\
**Created:** [23 June 2023 13:11 UTC](https://discourse.nodered.org/t/extracting-text-from-object-using-mustache-template/79370 "2023-06-23T13:11:29Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)\
**Post date:** [23 June 2023 13:26 UTC](https://discourse.nodered.org/t/extracting-text-from-object-using-mustache-template/79370/2 "2023-06-23T13:26:21Z")

</div>

FYI: This has been asked and answered [many many times already](https://discourse.nodered.org/search?q=mustache%20array)

Dont use `[x]`, use `.x.` instead

```auto
{{payload.0.Text}}
{{payload.1.Text}}
{{payload.2.Text}}
{{payload.?.Text}}
and so on

```

Even better:

```auto
{{#payload}}
     {{Text}
{{/payload}}

```

---

_[View the full topic](https://discourse.nodered.org/t/extracting-text-from-object-using-mustache-template/79370)._
