Restore a list format after retrieving a file

Hello,
In an application, I manage a list containing lists.
ex.
[["toto", 12, [0.5, 0.9]], ["tata", 33, [0.4, 0.1]]]
I save this list in a .txt file.
When I retrieve this .txt file, my list is in text format.
"[["toto", 12, [0.5, 0.9]], ["tata", 33, [0.4, 0.1]]]"
How can I transform this text into a list as it was originally ?

Thank you

Use the JSONTextDecode block from the web component. You may need to remove the outer double quotes first. (Text replacement blocks)


Or you can try to save the list to the file as csv formatted data, use the list to csv table block

edit, hmmm that doesn't quite work:

Thank
Ok with JSONTextDecode block

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