How to solve JSON retrofit error with Deferred Response
问题 I followed with tutorial : https://android.jlelse.eu/android-networking-in-2019-retrofit-with-kotlins-coroutines-aefe82c4d777 I need to recover data in JSON format, I get the following error message : com.squareup.moshi.JsonDataException: Expected BEGIN_OBJECT but was BEGIN_ARRAY at path $* I looked at this answer but I don't know how to adapt it to my code : Retrofit Expected BEGIN_OBJECT but was BEGIN_ARRAY This is my interface interface LocationService { @GET("locations?countryid=fr") fun