问个android json解析问题 麻烦大牛回答一下 谢谢! -问答-阿里云开发者社区-阿里云

开发者社区> 问答> 正文

问个android json解析问题 麻烦大牛回答一下 谢谢!

杨冬芳 2016-07-05 17:16:00 1387

{
"code": 200,
"datas": {
"banner_info": [
{
"pic_name": "冬季名品-大牌季节日",
"phone_pic_img": ""
},
{
"pic_name": "全套茶具专场-年终盛典",
"phone_pic_img": ""
},
{
"pic_name": "女人再忙也要留一天为自己疯抢",
"phone_pic_img": ""
},
{
"pic_name": "全年爆款-年底清仓",
"phone_pic_img": ""
},
{
"pic_name": "清仓年末特优-满99元包邮",
"phone_pic_img": ""
}
],
"hot_info": [
{
"goods_id": "231",
"market_price": "1688.00",
"goods_name": "至尊金奖 法国原瓶进口AOC红酒 任选一箱 红沙城堡红葡萄酒 原装进口",
"goods_price": "899.00",
"goods_pic": "http://192.168.0.199:8081/data/upload/shop/store/goods/1/1_04423392298369303_240.jpg"
},
{
"goods_id": "232",
"market_price": "168.00",
"goods_name": "中华老字号 东阿阿胶桃花姬阿胶糕300g",
"goods_price": "150.00",
"goods_pic": "http://192.168.0.199:8081/data/upload/shop/store/goods/1/1_04423411880302392_240.png"
},
{
"goods_id": "53",
"market_price": "483.00",
"goods_name": "新款 女款 拼接 不规则摆 长袖针织衫开衫 杏雨 紫色",
"goods_price": "99.00",
"goods_pic": "http://192.168.0.199:8081/data/upload/shop/store/goods/1/1_04418254088878407_240.jpg"
},
{
"goods_id": "49",
"market_price": "358.00",
"goods_name": "春装 披肩式 超短款 针织 衫开衫 女装 青鸟 黑色",
"goods_price": "129.00",
"goods_pic": "http://192.168.0.199:8081/data/upload/shop/store/goods/1/1_04418240955916042_240.jpg"
},
{
"goods_id": "48",
"market_price": "358.00",
"goods_name": "春装 披肩式 超短款 针织 衫开衫 女装 青鸟 蓝色",
"goods_price": "129.00",
"goods_pic": "http://192.168.0.199:8081/data/upload/shop/store/goods/1/1_04418240795665638_240.jpg"
}
],
"class_info": []
}
}

这个该怎么解析? 谢谢!!!

解析json问题 android解析问题 解析json问题 解析uid android解析json
分享到
取消 提交回答
全部回答(1)
  • 杨冬芳
    2019-07-17 19:51:41
     public class Object
    {
        private int code;
        private Datas datas;
    
    
        private class Datas
        {
            private List<Banners> banner_info;
            private List<Hots> hot_info;
            private List<ClassInfos> class_info;
        }
    
        private class Banners
        {
            private String pic_name;
            private String phone_pic_img;
        }
    
        private class Hots
        {
            private String goods_id;
            private String market_price;
            private String goods_name;
            private String goods_price;
            private String goods_pic;
        }
    
        private class ClassInfos
        {
            ……
        }
    }
    
    0 0
开发与运维
使用钉钉扫一扫加入圈子
+ 订阅

集结各类场景实战经验,助你开发运维畅行无忧

相似问题
最新问题