how do you specify which field should be transformed
transform-to-json-string is a Single Message Transformation (SMT) for Apache Kafka® Connect to convert a given Connect Record to a single JSON String. It's an UNOFFICIAL community project.
Brought to you by:
shabazshk8
Originally posted by: an0r0c
Hi!
If you want to express this avro array as a json sting in the target system this SMT might be a solution for your problem.
At the moment the SMT takes the whole value and transforms it a json string.
If you need to just one specific sub-part of your records schema you can easily combine this SMT with other SMTs. Like with replacField to drop all other fields before you transform it to a json (https://rmoff.net/2020/12/21/twelve-days-of-smt-day-10-replacefield/)