How to parse JSON array without any object in Retrofit?

后端 未结 1 1271
暖寄归人
暖寄归人 2020-12-02 00:30

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:



        
相关标签:
1条回答
  • 2020-12-02 00:56

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

    new Callback<List<String>>().
    
    0 讨论(0)
提交回复
热议问题