Do I have this formatted correctly? I'm using http request node to hit an endpoint with the data payload.
msg.payload = ``{ "data": {{mac1Status}, {mac2Status}, {mac3Status}, {mac4Status}} }`;
return msg;
Note: There's an extra back tick before word data because the forum is treating the text as code if I don't add the extra one.
The data structure looks like this....
{
   "data":{
      "person1":{
         "status":"Disconnected",
         "mac":"3c:00:6d:14:3a:f1"
      },
      "person2":{
         "status":"Connected",
         "mac":"44:91:60:d5:00:f6"
      },
      "person3":{
         "status":"Connected",
         "mac":"58:cb:00:5c:58:45"
      },
      "person4":{
         "status":"Connected",
         "mac":"c4:98:80:db:00:5e"
      }
   }
}