How to use variable in a JSON format?

Hello everyone
I would like to send some values ​​in a JSON format, but I want to use variables as placeholders for these values. Does anyone have an idea how to do this?

Thanks for your time!

Mauri

This is at the very core of node-red. I would suggest to go through the documentation and how to work with messages. To create a "template" for messages, you can use the template node as well.

In addition, you can use JSONata to also do this.

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