# Send json to kafka topic

**URL:** <https://community.gatling.io/t/send-json-to-kafka-topic/2708>\
**Category:** Gatling (Open-Source)\
**Created:** [December 10, 2015, 11:23am UTC](https://community.gatling.io/t/send-json-to-kafka-topic/2708 "2015-12-10T11:23:51Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![mpha](https://avatars.discourse-cdn.com/v4/letter/m/eb9ed0/32.png) [@mpha](https://community.gatling.io/u/mpha)\
**Post date:** [December 10, 2015, 11:23am UTC](https://community.gatling.io/t/send-json-to-kafka-topic/2708/1 "2015-12-10T11:23:51Z")

</div>

Hi,

I am newbie to Gatling and recently started looking through the tutorials and trying to use Gatling with kafka based on the github example. I was able to successfully post a message to kafka topic but not a json directly to kafka topic. This is the piece where am i stuck while i want to send entire json.

val scn = scenario(“Kafka Test”)

.feed(jsonFileFeeder)  
.exec(kafka(“request”).send("${value}"))

setUp(scn.inject(constantUsersPerSec(1) during(5 seconds))).protocols(kafkaConf)

this json is feed from twitter.  
Anyhelp or suggestions is appreciated.

Thanks,mpha

---

<div class="post-metadata">

**Author:** ![slandelle](https://dub1.discourse-cdn.com/flex013/user_avatar/community.gatling.io/slandelle/32/4_2.png) [@slandelle](https://community.gatling.io/u/slandelle)\
**Post date:** [December 10, 2015, 7:10pm UTC](https://community.gatling.io/t/send-json-to-kafka-topic/2708/2 "2015-12-10T19:10:10Z")

</div>

This plugin is a third party: [https://github.com/mnogu/gatling-kafka](https://github.com/mnogu/gatling-kafka)

If the author doesn’t answer here, you should try your luck directly in his bug tracker.

Cheers,
