Split string coming from API

I need to split this string coming in from an API, I have tried, "Split" Node and "Switch" and tried the function node with "phrase", can anyone shed some light... Thanks in advance...

Just want to extract "ts" and "value" individually.

The payload shown is typical of a JSON string. Try using a JSON node configured to "Always convert to JavaScript object" and then you can get the data you want in msg.payload.temperature[0].ts and msg.payload.temperature[0].value

Perfect, thank you very much, I`m still getting confused with brackets etc,[0] I had left out this time. Once again thank you.

1 Like

This page explains how to use the debug panels tool tips to find and copy the path to any bit of data