# Can I use JSONata to access elements of a msg.payload when it's a buffer of byte?

**URL:** <https://discourse.nodered.org/t/can-i-use-jsonata-to-access-elements-of-a-msg-payload-when-its-a-buffer-of-byte/82250>\
**Category:** General\
**Created:** [22 October 2023 09:51 UTC](https://discourse.nodered.org/t/can-i-use-jsonata-to-access-elements-of-a-msg-payload-when-its-a-buffer-of-byte/82250 "2023-10-22T09:51:25Z")\
**Posts on this page:** 1\
**Showing post:** 12

<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:** [22 October 2023 11:28 UTC](https://discourse.nodered.org/t/can-i-use-jsonata-to-access-elements-of-a-msg-payload-when-its-a-buffer-of-byte/82250/12 "2023-10-22T11:28:56Z")

</div>

> [@cymplecy](#):
>
> But I've never managed to understand how to use it

It's not so bad once you "get it". And once you do, you realise why it's laid out as it is and it's power.

You can of course read the explanations in the built in help but [this example](https://discourse.nodered.org/t/scaled-value-while-reading-modbus/75871/4) should give you a head start:

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/6/d/6d70713461c4d7c154e73efabe462fb28784beaf.png)

---

_[View the full topic](https://discourse.nodered.org/t/can-i-use-jsonata-to-access-elements-of-a-msg-payload-when-its-a-buffer-of-byte/82250)._
