Skip to content

parse_json deosn't work #323

Closed Answered by jszwedko
yuzhichang asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @yuzhichang ,

I think your issue is that the events are coming out of the kafka source as an encoded JSON string rather than a JSON object. You could try setting:

decoding.codec = "json"

On the kafka source so that it decodes the incoming messages as JSON. Then the remap could further parse the .message field as JSON.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by yuzhichang
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #322 on July 13, 2023 16:08.