You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
java.lang.RuntimeException: java.lang.Exception: com.squareup.moshi.JsonDataException: Expected BEGIN_OBJECT but was BEGIN_ARRAY at path $.data[0].relationships
Retrofit call:
@GET("someApi/someModel")
fun getSomeModel(): Single<ArrayDocument<SomeModel>>
Model:
@JsonApi(type = "some_model")
public class SomeModel extends Resource {
@Json(name = "foo")
public String foo;
@Json(name = "bar")
public String bar;
}
java.lang.RuntimeException: java.lang.Exception: com.squareup.moshi.JsonDataException: Expected BEGIN_OBJECT but was BEGIN_ARRAY at path $.data[0].relationships
Retrofit call:
Model:
Response:
The text was updated successfully, but these errors were encountered: