I am working with Retrofit and GSON. I have a JSON response as a JSON array but I don't know how to parse it by using a model class. My response is as follows:
[
"One",
"Two",
"Three",
"Four",
"Five",
"Six",
"Seven",
"Eight"
]
Just call in the callback a list of Strings and it should do the job...
new Callback<List<String>>().
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With