A Converter
which uses Gson for serialization to and from JSON.
A default Gson
instance will be created or one can be configured and passed to the
GsonConverterFactory
to further control the serialization.
Download the latest JAR or grab via Maven:
<dependency>
<groupId>com.squareup.retrofit2</groupId>
<artifactId>converter-gson</artifactId>
<version>latest.version</version>
</dependency>
or Gradle:
implementation 'com.squareup.retrofit2:converter-gson:latest.version'
Snapshots of the development version are available in Sonatype's snapshots
repository.