Sending sensor readings etc. via MQTT in JSON format

Hi,
I need to send sensor readings out to an MQTT broker in JSON format. Is there any easy way to do it? What I found so far sounds a bit complicated for me…
Currently I use MQTT-Statestream but this unfortunately only sends plain text, no JSON…

Thanks,

Thomas

Use the mqtt publish action, MQTT - Home Assistant