External parser for amqp_consumer

Hello,
I have a telegraf instance consuming from a RabbitMQ queue JSON messages with different structures.
those structures are also defined in openapi, so I was wondering if it was possible to use an external parser, written for example in java or pyhton, to deserialize the JSONs and convert them into influx data lines.

Thanks