# Extract Json data from Function node and display debug node individually

**URL:** <https://discourse.nodered.org/t/extract-json-data-from-function-node-and-display-debug-node-individually/8206>\
**Category:** General\
**Created:** [21 February 2019 08:04 UTC](https://discourse.nodered.org/t/extract-json-data-from-function-node-and-display-debug-node-individually/8206 "2019-02-21T08:04:04Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Varul92](https://avatars.discourse-cdn.com/v4/letter/v/b4bc9f/32.png) [@Varul92](https://discourse.nodered.org/u/Varul92)\
**Post date:** [21 February 2019 08:04 UTC](https://discourse.nodered.org/t/extract-json-data-from-function-node-and-display-debug-node-individually/8206/1 "2019-02-21T08:04:04Z")

</div>

Hi, after searching on google I was able to extract individual single value data using node function but how can I extract more than 1 value to send the individual data from JSON format to debug node using node function.

For Extracting only one value I have used mentioned formulae

```auto
p = JSON.parse(msg.payload);
node.log(typeof p);
msg.payload = p.my;
return msg;

```

I am using the flow mentioned in snapshot below

 ![Flow](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/2X/e/e080842b687a14b9ab57f9c5765a6c3188ea4777.png)

---

<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:** [21 February 2019 08:17 UTC](https://discourse.nodered.org/t/extract-json-data-from-function-node-and-display-debug-node-individually/8206/2 "2019-02-21T08:17:29Z")

</div>

See the manual on creating multiple outputs ?

[https://nodered.org/docs/writing-functions#multiple-outputs](https://nodered.org/docs/writing-functions#multiple-outputs)

---

<div class="post-metadata">

**Author:** ![TotallyInformation](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/totallyinformation/32/31_2.png) [@TotallyInformation](https://discourse.nodered.org/u/TotallyInformation)\
**Post date:** [21 February 2019 08:33 UTC](https://discourse.nodered.org/t/extract-json-data-from-function-node-and-display-debug-node-individually/8206/3 "2019-02-21T08:33:21Z")

</div>

> [@Varul92](#):
>
> p = JSON.parse(msg.payload);

You shouldn't need to do that in your function since you are using the JSON node.
