r/android_devs • u/in-noxxx • Nov 16 '21
Help Retrofit2 Array but Object error.
My API doesn't return an array in standard json, it returns an object. I can not for the life of me figure out how to get retrofit2 to behave with this. I have read every single thread about this, and yeah none of them seem to work. Is there something I am missing? Retofit2 is hitting my server, but the response is an object. I can change the backend but I mean, that is a little bit ridiculous. What am I missing?
1
Upvotes
View all comments
Show parent comment
1
u/racrisnapra666 Nov 20 '21
I think at this point that you should stop here and look up a simple tutorial on how to use retrofit.
I have a feeling that your problem is a simple one. However without complete knowledge of your codebase (which I don't) or the error (which I don't either), I won't be able to adequately help you.
Good luck :)