设为首页 加入收藏

TOP

Json解析与Gson解析(二)
2017-10-11 15:31:46 】 浏览:2315
Tags:Json 解析 Gson
168.126.26:8080/news/a.jpg
2 3 4 5 data------->[DataBean{id=10000, title='新闻', type=1, des='这是一条有内涵的新闻1111'},
DataBean{id=10002, title='专题', type=10, des='这是一条有内涵的新闻222222'},
DataBean{id=10003, title='组图2', type=2, des='这是一条有内涵的新闻333333'},
DataBean{id=10006, title='组图4', type=2, des='这是一条有内涵的新闻333333'},
DataBean{id=10008, title='组图5', type=2, des='这是一条有内涵的新闻333333'},
DataBean{id=10003, title='组图6', type=2, des='这是一条有内涵的新闻ddddd33'},
DataBean{id=10003, title='组图7', type=2, des='这是一条有内涵的新闻3ssss33333'},
DataBean{id=10003, title='组图8', type=2, des='这是一条有内涵的新闻33dddd33333'},
DataBean{id=10004, title='互动', type=3, des='这是一条有内涵的新闻444444'}]

最后贴上原始的json数据

 1 {
 2     "retcode": 200,
 3     "data": [
 4         {
 5             "id": 10000,
 6             "title": "新闻",
 7             "type": 1,
 8         "des":"这是一条有内涵的新闻1111"        
 9         },
10         {
11             "id": 10002,
12             "title": "专题",
13             "type": 10,
14             "des":"这是一条有内涵的新闻222222"    
15         },
16         {
17             "id": 10003,
18             "title": "组图2",
19             "type": 2,
20             "des":"这是一条有内涵的新闻333333"    
21         },
22      {
23             "id": 10006,
24             "title": "组图4",
25             "type": 2,
26             "des":"这是一条有内涵的新闻333333"    
27         },
28      {
29             "id": 10008,
30             "title": "组图5",
31             "type": 2,
32             "des":"这是一条有内涵的新闻333333"    
33         },
34      {
35             "id": 10003,
36             "title": "组图6",
37             "type": 2,
38             "des":"这是一条有内涵的新闻ddddd33"    
39         },
40      {
41             "id": 10003,
42             "title": "组图7",
43             "type": 2,
44             "des":"这是一条有内涵的新闻3ssss33333"    
45         },
46      {
47             "id": 10003,
48             "title": "组图8",
49             "type": 2,
50             "des":"这是一条有内涵的新闻33dddd33333"    
51         },
52         {
53             "id": 10004,
54             "title": "互动",
55             "type": 3,
56              "des":"这是一条有内涵的新闻444444"    
57         }
58     ],
59     "header":"http://192.168.126.26:8080/news/a.jpg"
60     
61     
62 }

好啦操作到此结束

首页 上一页 1 2 下一页 尾页 2/2/2
】【打印繁体】【投稿】【收藏】 【推荐】【举报】【评论】 【关闭】 【返回顶部
上一篇获取android的SDK或者手机目录路径 下一篇最合适UX设计师的五款原型工具

最新文章

热门文章

Hot 文章

Python

C 语言

C++基础

大数据基础

linux编程基础

C/C++面试题目