Extract values from Json Object

Hello,

I'm using a great node to connect a universal robot to node red.
The connection works finde and I'm getting Json Data from the robot.
I would like to pick certain values from this json object and display them on a dashboard.
Can anyone tell me how to proceed and extract certain values for example position actual (see foto below) and display them on a dashboard?

The node and a small description can be found here:
https://flows.nodered.org/node/node-red-contrib-ur-robot

Thank you so much!

msg.payload.jointData[0].positionActual will be the solution - you can display this direct in a text node
br
Hubertus

There’s a great page in the docs that will explain how to use the debug panel to find the right path to any data item.

Pay particular attention to the part about the buttons that appear under your mouse pointer when you over hover a debug message property in the sidebar.

BX00Cy7yHi

https://nodered.org/docs/user-guide/messages

Thank you so much for your answers!
If I want to use for example a gauge or graph to display the values can I use these nodes directly or do I need a change node or something to set the message payload to the value using the path?

Thanks!

Make sure to go through all these essential videos to understand how node-red works.

Every node has a help function, in the info tab. Select the node and read the help.

You can use the gauge node directly, you can choose which property you wish to display.
eg in the value format field
{{msg.payload.jointData[0].positionActual}}
or if you want to round the dispay
{{msg.payload.jointData[0].positionActual | number:3}}

This is all in the help text, use the book icon in the side panel.

In the graph node you would move your value to msg.payload using a change or function or template node. you would also set a msg.topic.

Dear All,

sorry for my late reply.
I want to thank all of you for the very useful comments and your input.
I was able to extract the data and visualize it on the dashboard.

Thank you very much again!