1. 程式人生 > >Gson解析JSON資料例項

Gson解析JSON資料例項

這裡寫圖片描述

{
  "respBody": {
    "timestamp": "1482745098465",
    "enableTingyun": true,
    "recommendIcon": "http://27.151.112.180:8005/xyzqylb2.1/images/icon/20161226173818/FDD683F0001145DAB5.png",
    "splash": [
      {
        "detail": "",
        "title": "ios4",
        "remark": "",
        "imageUrl": "",
        "linkParam
": "", "link": "http://estock.xyzq.com.cn/fundmatch/views/index.html?channel=ylb", "iconUrl": "http://27.151.112.180:8005/xyzqylb2.1/images/splash/default/1CD17D9128A843C5AA.png", "linkType": "2" }, { "detail": "", "title": "ios5", "remark": "", "imageUrl
": "", "linkParam": "", "link": "http://estock.xyzq.com.cn/fundmatch/views/index.html?channel=ylb", "iconUrl": "http://27.151.112.180:8005/xyzqylb2.1/images/splash/default/69E0480E90504364B911111.png", "linkType": "2" }, { "detail": "", "title": "1080p", "remark
": "", "imageUrl": "", "linkParam": "", "link": "http://estock.xyzq.com.cn/fundmatch/views/index.html?channel=ylb", "iconUrl": "http://27.151.112.180:8005/xyzqylb2.1/images/splash/default/D7EAFF5AA4CA4093AC111.png", "linkType": "2" } ]
, "pollNews": 30, "enableTalkingdata": true, "enableBonree": true, "newsTitle": "投資參考", "useLocalSplash": true, "buttonList": [ { "items": [ { "detail": "", "title": "自選", "remark": "0", "imageUrl": "", "linkParam": "", "link": "3", "iconUrl": "http://27.151.112.180:8005/xyzqylb2.1/images/icon/20161226173818/45E3A189AC154007A9.png", "linkType": "1" }, { "detail": "", "title": "行情", "remark": "0", "imageUrl": "", "linkParam": "", "link": "4", "iconUrl": "http://27.151.112.180:8005/xyzqylb2.1/images/icon/20161226173818/7B202842687D493F92.png", "linkType": "1" }, { "detail": "", "title": "資訊", "remark": "0", "imageUrl": "", "linkParam": "", "link": "info/index.html", "iconUrl": "http://27.151.112.180:8005/xyzqylb2.1/images/icon/20161226173818/671B5D56A7C040DBBB.png", "linkType": "2" }, { "detail": "", "title": "銀證轉帳", "remark": "1", "imageUrl": "", "linkParam": "", "link": "http://27.151.112.180:8005/ulb3/hallwap/biz/bank/sec/nav?channel=WAP_YLB_APP", "iconUrl": "http://27.151.112.180:8005/xyzqylb2.1/images/icon/20161226173818/C8DDDDB7D0A7415684.png", "linkType": "2" }, { "detail": "", "title": "交易", "remark": "2", "imageUrl": "", "linkParam": "", "link": "12", "iconUrl": "http://27.151.112.180:8005/xyzqylb2.1/images/icon/20161226173818/A522D419376F425CA1.png", "linkType": "1" }, { "detail": "", "title": "新股申購", "remark": "1", "imageUrl": "", "linkParam": "type=101", "link": "info/index.html", "iconUrl": "http://27.151.112.180:8005/xyzqylb2.1/images/icon/20161226173818/C8C473DDC4A746389E.png", "linkType": "2" }, { "detail": "", "title": "業務辦理", "remark": "1", "imageUrl": "", "linkParam": "", "link": "http://27.151.112.180:8005/ulb3/hallwap/index?channel=WAP_YLB_APP", "iconUrl": "http://27.151.112.180:8005/xyzqylb2.1/images/icon/20161226173818/5ED74595E6124B8692.png", "linkType": "2" }, { "detail": "", "title": "開戶", "remark": "0", "imageUrl": "", "linkParam": "url=http://wap.xyzq.com.cn/app/download/kh/xyzq_kh.apk", "link": "6", "iconUrl": "http://27.151.112.180:8005/xyzqylb2.1/images/icon/20161226173818/3A77D7C6ED9645378F.png", "linkType": "1" }, { "detail": "", "title": "纏論結構", "remark": "0", "imageUrl": "", "linkParam": "", "link": "http://h5.test.icaikee.com/youlibaoXYv1/index.html", "iconUrl": "http://27.151.112.180:8005/xyzqylb2.1/images/icon/ico_cljg.png", "linkType": "2" }, { "detail": "", "title": "牛人牛股", "remark": "0", "imageUrl": "", "linkParam": "", "link": "http://h5.test.icaikee.com/combineXYv1/index.html", "iconUrl": "http://27.151.112.180:8005/xyzqylb2.1/images/icon/ico_nrng.png", "linkType": "2" }, { "detail": "", "title": "投資日曆", "remark": "0", "imageUrl": "", "linkParam": "", "link": "http://h5.test.icaikee.com/themeXYv1/index.html", "iconUrl": "http://27.151.112.180:8005/xyzqylb2.1/images/icon/ico_tzrl.png", "linkType": "2" }, { "detail": "", "title": "智慧投顧", "remark": "0", "imageUrl": "", "linkParam": "", "link": "http://h5.test.icaikee.com//intelligentXYv1.0/index.html?from=singlemessage&isappinstalled=0", "iconUrl": "http://27.151.112.180:8005/xyzqylb2.1/images/icon/ico_zntg.png", "linkType": "2" } ], "banType": "5" }, { "items": [ { "detail": "", "title": "投資者教育", "remark": "", "imageUrl": "", "linkParam": "", "link": "http://27.151.112.180:8005/ylb2.0/teach/teach.html", "iconUrl": "http://27.151.112.180:8005/xyzqylb2.1/images/icon/20161226173818/1039ADC49EA045BA89.png", "linkType": "2" }, { "detail": "", "title": "意見反饋", "remark": "", "imageUrl": "", "linkParam": "", "link": "8", "iconUrl": "http://27.151.112.180:8005/xyzqylb2.1/images/icon/20161226173818/E55ED16E25724B62A5.png", "linkType": "1" }, { "detail": "", "title": "客服電話", "remark": "", "imageUrl": "", "linkParam": "phone=95562", "link": "11", "iconUrl": "http://27.151.112.180:8005/xyzqylb2.1/images/icon/20161226173818/F5C8670316BC424E90.png", "linkType": "1" }, { "detail": "", "title": "免責宣告", "remark": "", "imageUrl": "", "linkParam": "", "link": "10", "iconUrl": "http://27.151.112.180:8005/xyzqylb2.1/images/icon/20161226173818/1AB60970D6EF4E35A3.png", "linkType": "1" } ], "banType": "6" } ], "mallUrl": "http://27.151.112.180:8005/upc_view/dev_web2.1.0_test_integrate/spa/spa-require-ylb.html", "myself": { "fundAccUrl": "http://27.151.112.180:8005/upc_view/dev_web2.1.0_test_integrate/spa/spa-require-ylbaccountDetails.html", "xztAccUrl": "http://27.151.112.180:8005/upc_view/dev_web2.1.0_test_integrate/spa/spa-require-accountManage.html", "buttonList": [ { "items": [ { "detail": "", "title": "我的財富", "remark": "0", "imageUrl": "", "linkParam": "isulblogin=1", "link": "http://27.151.112.180:8005/ulb3/hallwap/wealth/index?channel=WAP_YLB_APP", "iconUrl": "https://estock.xyzq.com.cn/static/images/icon/20161226182503/7B202842687D493F92.png", "linkType": "2" }, { "detail": "", "title": "理財訂單", "remark": "0", "imageUrl": "", "linkParam": "isulblogin=1", "link": "http://27.151.112.180:8005/upc_view/dev_web2.1.0_test_integrate/spa/spa-require-ylb-my-order.html", "iconUrl": "https://estock.xyzq.com.cn/static/images/icon/20161226182503/7B202842687D493F92.png", "linkType": "2" }, { "detail": "", "title": "銀證轉賬", "remark": "0", "imageUrl": "", "linkParam": "isulblogin=1", "link": "http://27.151.112.180:8005/ulb3/hallwap/biz/bank/sec/nav?channel=WAP_YLB_APP", "iconUrl": "https://estock.xyzq.com.cn/static/images/icon/20161226182503/671B5D56A7C040DBBB.png", "linkType": "2" } ], "banType": "8" }, { "items": [ { "detail": "", "title": "我的理財", "remark": "0", "imageUrl": "", "linkParam": "isulblogin=1", "link": "http://27.151.112.180:8005/upc_view/dev_web2.1.0_test_integrate/spa/spa-require-ylb-my-finance-prod.html", "iconUrl": "https://estock.xyzq.com.cn/static/images/icon/20161226182503/7B202842687D493F92.png", "linkType": "2" }, { "detail": "", "title": "我的定投", "remark": "0", "imageUrl": "", "linkParam": "isulblogin=1", "link": "http://27.151.112.180:8005/upc_view/dev_web2.1.0_test_integrate/spa/spa-require-ylb-my-adviser.html", "iconUrl": "https://estock.xyzq.com.cn/static/images/icon/20161226182503/7B202842687D493F92.png", "linkType": "2" }, { "detail": "", "title": "我的資訊", "remark": "0", "imageUrl": "", "linkParam": "isulblogin=1", "link": "http://27.151.112.180:8005/upc_view/dev_web2.1.0_test_integrate/spa/spa-require-ylb-my-info.html", "iconUrl": "https://estock.xyzq.com.cn/static/images/icon/20161226182503/7B202842687D493F92.png", "linkType": "2" }, { "detail": "", "title": "我的收藏", "remark": "0", "imageUrl": "", "linkParam": "isulblogin=1", "link": "http://27.151.112.180:8005/upc_view/dev_web2.1.0_test_integrate/spa/spa-require-ylb-my-collect-prod.html", "iconUrl": "https://estock.xyzq.com.cn/static/images/icon/20161226182503/7B202842687D493F92.png", "linkType": "2" } ], "banType": "9" }, { "items": [ { "detail": "", "title": "業務辦理", "remark": "0", "imageUrl": "", "linkParam": "", "link": "http://27.151.112.180:8005/ulb3/hallwap/index?channel=WAP_YLB_APP", "iconUrl": "https://estock.xyzq.com.cn/static/images/icon/20161226182503/7B202842687D493F92.png", "linkType": "2" }, { "detail": "", "title": "風險測評", "remark": "0", "imageUrl": "", "linkParam": "isulblogin=1", "link": "http://27.151.112.180:8005/ulb3/hallwap/biz/risk/index?channel=WAP_YLB_APP", "iconUrl": "https://estock.xyzq.com.cn/static/images/icon/20161226182503/7B202842687D493F92.png", "linkType": "2" }, { "detail": "", "title": "創業板轉籤", "remark": "0", "imageUrl": "", "linkParam": "isulblogin=1", "link": "http://27.151.112.180:8005/ulb3/hallwap/biz/chinanext/gemsignindex?channel=WAP_YLB_APP", "iconUrl": "https://estock.xyzq.com.cn/static/images/icon/20161226182503/7B202842687D493F92.png", "linkType": "2" } ], "banType": "9" }, { "items": [ { "detail": "", "title": "好友分享", "remark": "0", "imageUrl": "", "linkParam": "title=優理寶&iconpath=&content=一站式金融體驗,讓你開啟財富之門&jumpurl=http://wap.xyzq.com.cn/", "link": "22", "iconUrl": "https://estock.xyzq.com.cn/static/images/icon/20161226182503/7B202842687D493F92.png", "linkType": "1" }, { "detail": "", "title": "新手指引", "remark": "0", "imageUrl": "", "linkParam": "", "link": "23", "iconUrl": "https://estock.xyzq.com.cn/static/images/icon/20161226182503/7B202842687D493F92.png", "linkType": "1" }, { "detail": "", "title": "我要吐槽", "remark": "0", "imageUrl": "", "linkParam": "", "link": "8", "iconUrl": "https://estock.xyzq.com.cn/static/images/icon/20161226182503/7B202842687D493F92.png", "linkType": "1" } ], "banType": "9" } ] }, "trade": { "normalTrade": { "indexPage": { "buttonList": [ { "items": [ { "detail": "", "title": "買入", "remark": "0", "imageUrl": "", "linkParam": "", "link": "33", "iconUrl": "https://estock.xyzq.com.cn/static/images/icon/20161226182503/45E3A189AC154007A9.png", "linkType": "1" }, { "detail": "", "title": "賣出", "remark": "0", "imageUrl": "", "linkParam": "", "link": "34", "iconUrl": "https://estock.xyzq.com.cn/static/images/icon/20161226182503/7B202842687D493F92.png", "linkType": "1" }, { "detail": "", "title": "撤單", "remark": "0", "imageUrl": "", "linkParam": "", "link": "35", "iconUrl": "https://estock.xyzq.com.cn/static/images/icon/20161226182503/671B5D56A7C040DBBB.png", "linkType": "1" }, { "detail": "", "title": "資金股份", "remark": "1", "imageUrl": "", "linkParam": "", "link": "46", "iconUrl": "https://estock.xyzq.com.cn/static/images/icon/20161226182503/C8DDDDB7D0A7415684.png", "linkType": "1" }, { "detail": "", "title": "銀證轉賬", "remark": "2", "imageUrl": "", "linkParam": "", "link": "https://estock.xyzq.com.cn/ulb/yzzz", "iconUrl": "https://estock.xyzq.com.cn/static/images/icon/20161226182503/A522D419376F425CA1.png", "linkType": "2" }, { "detail": "", "title": "委託查詢", "remark": "1", "imageUrl": "", "linkParam": "", "link": "36", "iconUrl": "https://estock.xyzq.com.cn/static/images/icon/20161226182503/C8C473DDC4A746389E.png", "linkType": "1" }, { "detail": "", "title": "成交查詢", "remark": "1", "imageUrl": "", "linkParam": "", "link": "37", "iconUrl": "https://estock.xyzq.com.cn/static/images/icon/20161226182503/5ED74595E6124B8692.png", "linkType": "1" }, { "detail": "", "title": "資金流水", "remark": "0", "imageUrl": "", "linkParam": "", "link": "38", "iconUrl": "https://estock.xyzq.com.cn/static/images/icon/20161226182503/3A77D7C6ED9645378F.png", "linkType": "1" } ], "banType": "5" }, { "items": [ { "detail": "", "title": "新股申購", "summary": { "formatText": "今日有%s只新股可申購", "formatDataType": "0" }, "remark": "0", "imageUrl": "", "linkParam": "", "link": "25", "iconUrl": "", "linkType": "1" }, { "detail": "", "title": "國債逆回購", "remark": "0", "imageUrl": "", "linkParam": "", "link": "170", "iconUrl": "", "linkType": "1" }, { "detail": "", "title": "現金理財", "remark": "0", "imageUrl": "", "linkParam": "", "link": "https://estock.xyzq.com.cn/ulb/xxxr", "iconUrl": "", "linkType": "2" } ], "banType": "7" }, { "items": [ { "detail": "", "title": "滬港通", "remark": "0", "imageUrl": "", "linkParam": "", "link": "68", "iconUrl": "", "linkType": "1" }, { "detail": "", "title": "深港通", "remark": "0", "imageUrl": "", "linkParam": "", "link": "158", "iconUrl": "", "linkType": "1" } ], "banType": "7" }, { "items": [ { "detail": "", "title": "場內基金", "summary": { "formatText": "支援實時深申贖貨幣基金" }, "remark": "0", "imageUrl": "", "linkParam": "", "link": "32", "iconUrl": "", "linkType": "1" }, { "detail": "", "title": "分級基金", "remark": "0", "imageUrl": "", "linkParam": "", "link": "32", "iconUrl": "", "linkType": "1" }, { "detail": "", "title": "跨境跨市ETF", "remark": "0", "imageUrl": "", "linkParam": "", "link": "32", "iconUrl": "", "linkType": "1" } ], "banType": "7" } ] }, "qryFuncList": { "buttonList": [ { "items": [ { "detail": "", "title": "成交查詢", "remark": "0", "imageUrl": "", "linkParam": "", "link": "37", "iconUrl": "", "linkType": "1" }, { "detail": "", "title": "委託查詢", "remark": "0", "imageUrl": "", "linkParam": "", "li