I got this set up to listen for messages on a topic and forward them to a remote server using the JSON format and it's working great. I would ideally like to change the format before it's sent to a remote server. For example, instead of { "topic1": "123" }, is there a way to send it out like {"topic": "topic1", "value": "123"}?
I got this set up to listen for messages on a topic and forward them to a remote server using the JSON format and it's working great. I would ideally like to change the format before it's sent to a remote server. For example, instead of
{ "topic1": "123" }
, is there a way to send it out like{"topic": "topic1", "value": "123"}
?