i want to print elements of array of msg.payload.output.text in new line
Hi. Your question is very vague.
"Print" - to a printer?
msg.payload.output.text a string or array?
What does "in new line" mean?
You will have to provide more information and perhaps screenshots of your debug output and the expected format if you really want any help.