I am using kafka JDBC Source connector to fetch the JSON data from table (using a complex SQL query that generates the JSON data using JSON functions of Postgres DB) and using the JsonConverter to publish to kafka topic.
Since the result would have nested JSON, the data when published to kafka topic is having extra " and \ added by converter. Basically the JSON field is treated as String when converted into JSON.
Is there any support to handle nested JSON in connector?
I am using kafka JDBC Source connector to fetch the JSON data from table (using a complex SQL query that generates the JSON data using JSON functions of Postgres DB) and using the JsonConverter to publish to kafka topic.
Since the result would have nested JSON, the data when published to kafka topic is having extra " and \ added by converter. Basically the JSON field is treated as String when converted into JSON. Is there any support to handle nested JSON in connector?
Expected output:
Output produced by connector:
Below is the connector properties:
Below is the connector properties: