Class StringJsonMessageConverter

All Implemented Interfaces:
MessageConverter, RecordMessageConverter

public class StringJsonMessageConverter extends JsonMessageConverter
JSON Message converter - String on output, String, Bytes, or byte[] on input. Used in conjunction with Kafka StringSerializer/(StringDeserializer, BytesDeserializer, or ByteArrayDeserializer). Consider using the ByteArrayJsonMessageConverter instead to avoid unnecessary String->byte[] conversion.
Author:
Gary Russell, Artem Bilan, Dariusz Szablinski, Vladimir Loginov
  • Constructor Details

    • StringJsonMessageConverter

      public StringJsonMessageConverter()
    • StringJsonMessageConverter

      public StringJsonMessageConverter(com.fasterxml.jackson.databind.ObjectMapper objectMapper)
  • Method Details