Class Jackson2JsonEncoder

All Implemented Interfaces:
Encoder<Object>, HttpMessageEncoder<Object>

public class Jackson2JsonEncoder extends AbstractJackson2Encoder
Encode from an Object stream to a byte stream of JSON objects using Jackson 2.9. For non-streaming use cases, Flux elements are collected into a List before serialization for performance reason.
Since:
5.0
Author:
Sebastien Deleuze, Arjen Poutsma
See Also:
  • Constructor Details

    • Jackson2JsonEncoder

      public Jackson2JsonEncoder()
    • Jackson2JsonEncoder

      public Jackson2JsonEncoder(ObjectMapper mapper, MimeType... mimeTypes)
  • Method Details