Convert python output from string to array

I have a python exec which outputs a list (2D array) but in Node Red it becomes a string:

How can I get the array in NR?

If the python is simple, re-do it with node-red flows/nodes - thats the best solution IMO.

If you can fix the python to output valid JSON, thats the 2nd best solution.

Failing that, regex + string replacements (good luck)


PS, as always, if you post text data instead of images, someone will likely pop in and show you how.

1 Like

I will go this way. thanks.

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