Facing an issue with output of mongo source connector

Hi All, I am facing an interesting issue with the structure of output of mongodb source connector for Kafka. It is always creating output in stringified JSON format though I kept the recommended output format like simple JSON or extended JSON etc. I am getting opening and closing quotes and escape characters in the message coming out of source connector to the topic. Did anybody face this issue before? Please let me know. Thanks.

Hi,
Did you find any solution to your problem. I am also facing the same issue. Please share your finding if you found a fix.

use the following config and you are sorted
{
“name”: “mongo-simple-source”,
“config”: {
“connector.class”: “com.mongodb.kafka.connect.MongoSourceConnector”,
“connection.uri”: “mongodb://mongo1”,
“database”: “test_db”,
“value.converter.schemas.enable”: “false”,
“output.format.value”: “schema”,
“poll.max.batch.size”: “2000”,
“key.converter.schemas.enable”: “false”,
“value.converter”: “org.apache.kafka.connect.json.JsonConverter”,
“change.stream.full.document”: “updateLookup”,
“producer.override.linger.ms”: “50”,
“output.format.key”: “json”,
“output.schema.infer.value”: “true”,
“output.json.formatter”: “com.mongodb.kafka.connect.source.json.formatter.SimplifiedJson”,
“key.converter”: “org.apache.kafka.connect.storage.StringConverter”,
“collection”: “order”,
“topic.namespace.map”: “{"test_db.package":"order-cdc.info"}”,
“name”: “mongo-simple-source”
}
}