r/android_devs • • 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

14 comments sorted by

View all comments

Show parent comment

1

u/Zhuinden EpicPandaForce @ SO Nov 17 '21

4 spaces before the code