How to parse a JSON array without any object in "Retrofit"?

I work with Retrofit and GSON. I have a JSON response as a JSON array, but I don't know how to parse it using the model class. My answer is this:

[ "One", "Two", "Three", "Four", "Five", "Six", "Seven", "Eight" ] 
+8
json android gson retrofit
source share
1 answer

Just call the list of lines in the callback and it should do the job ...

 new Callback<List<String>>(). 
+24
source share

All Articles