Dear Father, I am sinning - I'm writing a flow to modify flows.json
Now that's over with is there an easy method of nicely formatting my JSON before writing it to file
e.g instead of this
I get this
Dear Father, I am sinning - I'm writing a flow to modify flows.json
Now that's over with is there an easy method of nicely formatting my JSON before writing it to file
e.g instead of this
I get this
Via function node...
JSON.stringify(object, null, 4); //4 is the number of spaces for formatting
If your object is JSON, then run JSON.parse
first
JSON.stringify(JSON.parse(flowString), null, 2);
Guess what I just spotted
Ha - never noticed that!
This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.