spring-framework / org.springframework.http.converter.json / GsonHttpMessageConverter / setGson

setGson

open fun setGson(gson: Gson): Unit

Set the Gson instance to use. If not set, a default Gson instance will be used.

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

See Also
#GsonHttpMessageConverter(Gson)