Registry / serialization / converter-gson

converter-gson

JSON →
library3.0.0javamavenunverified

A Retrofit Converter which uses Gson for serialization and deserialization of JSON.

<dependency> <groupId>com.squareup.retrofit2</groupId> <artifactId>converter-gson</artifactId> <version>3.0.0</version> </dependency>
INSTALL
IMPORT
SIG · CONVERTER-GSON
C
converter-gson
serializationjavav3.0.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

GsonConverterFactory
retrofit2.converter.gson.GsonConverterFactory

Creates a Retrofit instance with Gson converter for JSON serialization.

import retrofit2.Retrofit; import retrofit2.converter.gson.GsonConverterFactory; public class Example { public static void main(String[] args) { Retrofit retrofit = new Retrofit.Builder() .baseUrl("https://api.example.com/") .addConverterFactory(GsonConverterFactory.create()) .build(); } }
Debug
Known issues
breakingRetrofit 2.x and 3.x have different APIs; ensure compatibility
fix
Use converter-gson version matching your Retrofit major version.
affects: >=3.0.0
Upgrade
Version history
3.0.0latest on Maven
Audit
Dependencies

No dependency data recorded yet.

Agent activity
7 hits · last 30 days
node
6
Resources
converter-gson — mvn dependency:get converter-gson · libregistry