open class GsonHttpMessageConverter : AbstractJsonHttpMessageConverter
Implementation of org.springframework.http.converter.HttpMessageConverter that can read and write JSON using the Google Gson library.
This converter can be used to bind to typed beans or untyped HashMaps. By default, it supports application/json and application/*+json with UTF-8 character set.
Tested against Gson 2.6; compatible with Gson 2.0 and higher.
Author
Roy Clarkson
Author
Juergen Hoeller
Since
4.1
See Also
com.google.gson.Gsoncom.google.gson.GsonBuilder#setGson
GsonHttpMessageConverter()
Construct a new GsonHttpMessageConverter(gson: Gson)
Construct a new |
open fun getGson(): Gson
Return the configured |
|
open fun setGson(gson: Gson): Unit
Set the Setting a custom-configured |