Reading contents of txt file into object

hello

I have a payload which has consists of:
payload.value1 = abc;
payload.value2 = def;
payload.value3= hij;

I write this to a text file, the text file contains:
{"value1":"abc", "value2":"def","value3":"hij"}

I then use a read node to read the text file. I would like the read node to output in the same format as the original payload, but instead with a debug node I just get a string containing "{"value1":"abc", "value2":"def","value3":"hij"}".

How do I make the read node output the contents in the text file into an object format like how I originally stored it?

Figured it out if anyone is interested - you can use the json node

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