https://github.com/stepio/kafka-json
JSON (de)serialization for kafka-client
https://github.com/stepio/kafka-json
Last synced: about 2 months ago
JSON representation
JSON (de)serialization for kafka-client
- Host: GitHub
- URL: https://github.com/stepio/kafka-json
- Owner: stepio
- Created: 2016-04-17T13:03:45.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2016-05-25T10:21:05.000Z (about 10 years ago)
- Last Synced: 2025-06-17T12:44:16.816Z (about 1 year ago)
- Language: Java
- Size: 12.7 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# kafka-json
[](https://travis-ci.org/stepio/kafka-json)
Generic implementation to support POJO messages in Kafka. Object is serialized to json and deserialized back with minimum extra code.
Using this project the exact Serializer/Deserializer implemented easily:
public class DummyEntitySerializer extends JsonSerializer {
}
public class DummyEntityDeserializer extends JsonDeserializer {
}
This is achieved with Jackson JSON project:
http://wiki.fasterxml.com/JacksonHome
No specific configuration is done for Jackson's ObjectMapper as of now, but it's predicted in the design.
The project is not supported anymore, as it's merged into [spring-kafka](https://github.com/spring-projects/spring-kafka).
The appropriate pull request is here:
https://github.com/spring-projects/spring-kafka/pull/81
Implementation is significantly improved by @artembilan, although it's not backward-compatible in some cases.