Apologies for all the screenshots, but I'm not allowed to upload the flow itself (there is sensitive information in the node obscured by the text label in the flow screenshot.
I honestly don't get it. Do you want your payload to be "1" or "0"? Then just write "value": "1" and "value": "0" instead of "value": "msg.payload"? But I cannot believe that this is what you want...
Sorry, I guess this is complicated by the fact that I can't post the flow.
The boolean true/false comes from the "LED state" node to the left of the red line. I'm trying to use the "change" node to the right of the red line to convert those true/false returns into JSON objects, in the format shown, that are then passed to the node hidden by the text box. The JSON "value" key needs to be set to 0 or 1 depending on whether the boolean from "LED State" is either "true" or "false"