In my rule I try to send {“id”:1,“method”:“toggle”,“params”:[]} to my TCP helper item, the square brackets never got passed. I try to escape them using [ , \[, \u005B, but with no luck. on my sitemap, it just showed {“id”:1,“method”:“toggle”,“params”:}. Just wondering what is the right way to do this
Sorry I didn’t read more carefully. Your literal string "{\"id\":2,\"method\":\"toggle\",\"params\": [] }" ought to have worked. Could you verify in your events.log that the square brackets weren’t sent, as opposed to an issue with the user interface not showing them?
Thanks for the reply! If you wouldn’t mind opening an issue against the UI(s) that stripped off the square brackets, it would be helpful. Thanks in any case for posting back here.