Yes you can, and easiest is probably using rules to create your JSON string, then the MQTT Action to send it out: MQTT Things and Channels - Bindings | openHAB
Or you could send the rule-created JSON string through a Thing channel - see an example here: Control Tasmota timers via MQTT