# How i can parse this code into dashboard?

**URL:** <https://discourse.nodered.org/t/how-i-can-parse-this-code-into-dashboard/41489>\
**Category:** Dashboard\
**Created:** [23 February 2021 13:53 UTC](https://discourse.nodered.org/t/how-i-can-parse-this-code-into-dashboard/41489 "2021-02-23T13:53:51Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![kemplut](https://avatars.discourse-cdn.com/v4/letter/k/df788c/32.png) [@kemplut](https://discourse.nodered.org/u/kemplut)\
**Post date:** [23 February 2021 13:53 UTC](https://discourse.nodered.org/t/how-i-can-parse-this-code-into-dashboard/41489/1 "2021-02-23T13:53:51Z")

</div>

how i can parse this code into dashboard ?.

![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/8/5/857348684aa3bea7890a8750395f9d4c7f2109e3.png)

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [23 February 2021 15:21 UTC](https://discourse.nodered.org/t/how-i-can-parse-this-code-into-dashboard/41489/2 "2021-02-23T15:21:39Z")

</div>

Welcome to the forum @kemplut.  
That appears to be a JSON string embedded in a javascript object, which is a bit unusual.  
If you are a complete beginner I recommend watching this playlist: [Node-RED Essentials](https://www.youtube.com/playlist?list=PLyNBB9VCLmo1hyO-4fIZ08gqFcXBkHy-6). The videos are done by the developers of node-red. They're nice & short and to the point. You will understand a whole lot more in about 1 hour. A small investment for a lot of gain.

Then read the node red doc Working with Messages which will show you how to use a Change node to extract the "con" string to msg.payload. Then if you feed that through a JSON node it should convert the JSON string to a javascript object so you can feed it to the dashboard.

---

<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 February 2021 15:39 UTC](https://discourse.nodered.org/t/how-i-can-parse-this-code-into-dashboard/41489/3 "2021-02-23T15:39:13Z")

</div>

In addidion to what colin has said, in future, post code instead of (or as well as) a screenshot

`````  
`{ "like": "this" }`  
`````

That way, if a user decides to generate a flow for you, they dont have to re-type the code/JSON from your screenshot.

---

<div class="post-metadata">

**Author:** ![kemplut](https://avatars.discourse-cdn.com/v4/letter/k/df788c/32.png) [@kemplut](https://discourse.nodered.org/u/kemplut)\
**Post date:** [5 March 2021 13:35 UTC](https://discourse.nodered.org/t/how-i-can-parse-this-code-into-dashboard/41489/4 "2021-03-05T13:35:11Z")

</div>

thanks all I have done solved this problem

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [4 April 2021 13:35 UTC](https://discourse.nodered.org/t/how-i-can-parse-this-code-into-dashboard/41489/5 "2021-04-04T13:35:52Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
