# Allow target to be also a jsonata expression

**URL:** <https://discourse.nodered.org/t/allow-target-to-be-also-a-jsonata-expression/10510>\
**Category:** Feature Requests\
**Created:** [24 April 2019 15:25 UTC](https://discourse.nodered.org/t/allow-target-to-be-also-a-jsonata-expression/10510 "2019-04-24T15:25:25Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![moebius](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/moebius/32/2872_2.png) [@moebius](https://discourse.nodered.org/u/moebius)\
**Post date:** [24 April 2019 19:02 UTC](https://discourse.nodered.org/t/allow-target-to-be-also-a-jsonata-expression/10510/5 "2019-04-24T19:02:39Z")

</div>

In the source field i can enter something like this:

```auto
$eval(payload[0].payload.cfg.p1,payload[1])

```

which returns a field in payload[1], defined by the string in .p1 (like "payload.data.val")

---

_[View the full topic](https://discourse.nodered.org/t/allow-target-to-be-also-a-jsonata-expression/10510)._
