T
T
Tsuzukeru2020-08-07 19:05:01
Android
Tsuzukeru, 2020-08-07 19:05:01

How to connect a deserializer to Retrofit using Gson?

You need to parse complex Json. Can you briefly explain how to connect a deserializer to Retrofit or send a link to a repository where you can peep how Retrofit is used in conjunction with Gson and deserializers.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Denis Zagaevsky, 2020-08-07
@Tsuzukeru

Depending on add
implementation 'com.squareup.retrofit2:converter-gson:2.1.0'
And when you create a retrofit builder, call addConverterFactory(GsonConverterFactory.create(gson))
More

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question