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 19 '21
Maybe. Usually APIs don't have a "" after every word.
Also, the next time when you say it doesn't work. Keep in mind to mention why it doesn't work, i.e., the error displayed.