[outputs.mqtt] output bare values as mqtt topic message

I am looking at ingesting some metrics from an SQL database and outputting them over mqtt using the outputs.mqtt plugin in telegraf.

With using the upcoming topic routing improvement I am able to create a nice topic hiearchy from the tags, but I would also like to serialize the messages to the topics as bare values instead of using any of the currently existing output formats, like the value input data format just for the output instead.

Does anyone know if this is possible?

When looking into how to create a Value output formatter, I discovered the json_transformation feature of the json output plugin, which I think can help me resolve the issue I had by simply querying for the value. Considering this closed.