Sending JSON payload to Kafka Proxy

If you use Rest Proxy API to send data to Kafka

{
    "records":[{
        "key": {
            "territoryCode": "{{ doc.name }}"
        },
        "value":  {{ json.dumps(doc) }}
    }]
}
1 Like