org.springframework.http.codec.json

Class Jackson2JsonEncoder

  • All Implemented Interfaces:
    Encoder<java.lang.Object>, HttpMessageEncoder<java.lang.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:
    Jackson2JsonDecoder