To share code samples or flow json in this forum, you need to take care to format it properly so that it is displayed correctly.
The forum provides a few different ways of doing it, but the easiest way to do it is to wrap the code with
``` - three back-tick characters. On standard US English keyboards, this is on the same key as the
Here’s an example flow shared by just pasting it in:
Note how the forum has turned the normal
" quotes into smart-quotes
”. That is no longer valid JSON and cannot be imported. By wrapping the same JSON in backticks:
You can see the quotes remain untouched.
For code from a Function node, first without the backticks:
msg.payload = “Hello There”;
And again, with the backticks:
msg.payload = "Hello There"; return msg;
The added syntax highlighting also makes it much easier to read.