I have a consumer application that expects JSON something like this: {"timestamp":1554138000,"level":"first","message":"abc"}
. But Confluent Message object seems to be a key value pairs of strings. I assume, the message KV pairs are internally serialized as json. But how can I ensure that it does not put double quote for timestamp value? Is there a way to pass raw JSON as message?
Asked
Active
Viewed 575 times
0

OneCricketeer
- 179,855
- 19
- 132
- 245

frosty
- 2,421
- 6
- 26
- 47
1 Answers
0
By passing null string for the key and Json string in the value, I was able to produce the Json expected by consumer application

frosty
- 2,421
- 6
- 26
- 47