OKGO 同步数据请求 数据解析

 Response resStr = OkGo.post(URI)
                    .upJson(upJson)
                    .execute();
            NewLoginBean message = gson.fromJson(resStr.body().string(), new TypeToken<NewLoginBean>() {
            }.getType());

这个 数据 resStr.body().string() 就是返回的json 数组做相应的解析就可以了

发布了46 篇原创文章 · 获赞 21 · 访问量 6万+

猜你喜欢

转载自blog.csdn.net/u012922981/article/details/103366003