spring-framework / org.springframework.http.converter.json / JsonbHttpMessageConverter / setJsonb

setJsonb

open fun setJsonb(jsonb: Jsonb): Unit

Set the Jsonb instance to use. If not set, a default Jsonb instance will be created.

Setting a custom-configured Jsonb is one way to take further control of the JSON serialization process.

See Also
#JsonbHttpMessageConverter(Jsonb)#JsonbHttpMessageConverter(JsonbConfig)JsonbBuilder