-
Notifications
You must be signed in to change notification settings - Fork 52
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Send valid JSON from Source #35
Comments
@npepinpe after checking the code I think this is expected at the moment? The source task publishes a message with the record json as string schema, which leads to the observed escaping. Can you confirm this? |
That's correct, the current solution is just to publish the record as a string - the other side has to parse it back as JSON. I'll try out with the JSON schema and report back. |
From our exploration we found two options:
We chose the first one because it was easier for us. |
@vringar: So you switched from JsonConverter to a StringConverter (here: #18)? That could maybe make sense to change that in the example too - right? Would you be willing to provide a Pull Request for it? For the Schema: I think we should switch to the typical Kafka transformation logic (#18) - that makes it more flexible. But currently we still wait for feedback on the usage before investing in that. Can you share anything about your use case? Also happy to get that via email offline. |
When sending messages from a Zeebe workflow with the example
ping-pong
configs, messages are overly escaped to the point that they aren't valid JSON anymore:and while this works for the round trip other consumers expecting proper JSON are failing on this message.
The text was updated successfully, but these errors were encountered: