How to fix Expected BEGIN_OBJECT in Retrofit?
问题 In my application i want use Retrofit for get some data from server. I write below codes but when run application and call api show me below error : E/socketLogResponse: Err : com.google.gson.JsonSyntaxException: java.lang.IllegalStateException: Expected BEGIN_OBJECT but was STRING at line 1 column 1 path $ Please see my above codes and help me API response from server : { "status": "ok", "time": 0.014972925186157227 } ApiService interface : @POST("api/log") Call<SocketPingResponse>