# Creation of Function Node for base64 payload

**URL:** https://discourse.nodered.org/t/creation-of-function-node-for-base64-payload/34058
**Category:** General
**Created:** [10 October 2020 16:42 UTC](https://discourse.nodered.org/t/creation-of-function-node-for-base64-payload/34058 "2020-10-10T16:42:55Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![bachloo.rahul](https://avatars.discourse-cdn.com/v4/letter/b/779978/32.png) [@bachloo.rahul](https://discourse.nodered.org/u/bachloo.rahul)
#### Post date: [10 October 2020 16:42 UTC](https://discourse.nodered.org/t/creation-of-function-node-for-base64-payload/34058/1 "2020-10-10T16:42:56Z")

</div>

Facing problem in creating and deploying the js

 ![1](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/9/3/93138bbbe4b1f03714ba7f8f2da1d95af01b3d8d.png) ![2](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/1/1/11a9f0d9186a47f0eda95fd2675c745d88034cc1.png) function node as i want to decode my payload.Could someone write the correct script of javascript code in function node of node red inorder to decode the payload and extract values of temperature and humidity as json outputs in node red debug window.it

---

<div class="post-metadata">

### Author: ![dceejay](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dceejay/32/38_2.png) [@dceejay](https://discourse.nodered.org/u/dceejay)
#### Post date: [10 October 2020 16:45 UTC](https://discourse.nodered.org/t/creation-of-function-node-for-base64-payload/34058/2 "2020-10-10T16:45:25Z")

</div>

already answered in your other thread - so closing this one, so as not to duuplicate.

---

<div class="post-metadata">

### Author: ![dceejay](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dceejay/32/38_2.png) [@dceejay](https://discourse.nodered.org/u/dceejay)
#### Post date: [10 October 2020 16:45 UTC](https://discourse.nodered.org/t/creation-of-function-node-for-base64-payload/34058/3 "2020-10-10T16:45:29Z")

</div>


