我很确定您的示例可以将响应类型设置为这样的Integer列表:
public interface ApiInterface { @GET("topstories.json?print=pretty") Call<List<Integer>> getTopStories();}对于本质上来说,仅使用整数数组,使用POJO太复杂了。

我很确定您的示例可以将响应类型设置为这样的Integer列表:
public interface ApiInterface { @GET("topstories.json?print=pretty") Call<List<Integer>> getTopStories();}对于本质上来说,仅使用整数数组,使用POJO太复杂了。