Join Slack
Powered by
<Expected BEGIN_ARRAY but was BEGIN_OBJECT when us...
# stackoverflow
u
user
10/20/2018, 11:46 AM
Expected BEGIN_ARRAY but was BEGIN_OBJECT when using GSON in a JSON with no array name
I am consuming the Github API but I am facing the a problem "Expected BEGIN_ARRAY but was BEGIN_OBJECT when using GSON", I am using retrofit ato consume my API and kotlin for developing. I have create a model with the serialization, and a manager to handle API responses as you can see above. This is the JSON I am consuming [ { "url": "
https://api.github.com/gists/8ca806eb78108aa2fecef2ab33312444
", "forks_url":...
Open in Slack
Previous
Next