r/nodered • u/Inevitable_Ad8679 • Feb 01 '21
JSON PAYLOAD WITH CHANGING VARIABLES
I am trying to create a node-red flow which will simulate a sensor getting data from people entering and leaving a restaurant. I was thinking of developing a code that will create JSON payloads in which one field needs to be changing all the time (ClientsInRestaurant) by adding or removing "1" client at a time, but I cannot figure it out. Is there any nodes where I can give a certain value to a variable, then put that variable inside the JSON field, and then send that JSON Payload to the HTTP POST/PUT request?
Thank you in advance
0
Upvotes
2
u/nlecaude Feb 02 '21
Something like this ?