淘宝(阿里百川)手机客户端开发日记第十五篇 JSON解析(四)
解析一个从淘宝传递的JSON (大家如有兴趣可以测试下):{
"tae_item_detail_get_response":
{
"data":
{
"coupon_info":{
"shop_coupon":"false"
},
"desc_info":
{
"content":"<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<wapDesc><img size=\"57744\">http:\/\/img.alicdn.com\/imgextra\/i2\/1716037031\/TB2VHOHdFXXXXaKXpXXXXXXXXXX-1716037031.jpg<\/img><img size=\"85069\">http:\/\/img02.taobaocdn.com\/imgextra\/i2\/1716037031\/TB2df1FbFXXXXXaXpXXXXXXXXXX-1716037031.jpg<\/img><txt>!!!!特大惊喜!!!!\r\n\r\n全部新升级版不只是充电宝手机,现在还能上微信 QQ各大时尚功能集于一身。此次升级还升级了电池。容量增加至5400毫安,超强续航。超长待机60天,手电筒不用开机就可以使用了。超强光束。\r\n\r\n!!!!加量不加价!!!\r\n\r\n更不用担心天天充电,采用防摔减震材质,德国密封技术,怎么摔都不怕坏。还有一键强光手电筒,雅马哈密封音响震撼喇叭,收音机,您一定爱不释手,最大的特点可以帮您的苹果三星手机彩充电哦。可为苹果4手机充满3次。无线续航您的爱机。!<\/txt><txt>套餐详情介绍:\r\n\r\n官方标配:手机+电池X1(5800毫安)+充电器+数据线+耳机+包装\r\n\r\n套餐一:手机+电池X1(5800毫安)+充电器+数据线+耳机+包装+2G卡\r\n\r\n套餐二:手机+电池X1(5800毫安)+充电器+数据线+耳机+包装+4G卡\r\n\r\n套餐三:手机+电池X2(5800毫安)+充电器+数据线+耳机+包装+8G卡 \r\n\r\n套餐四:手机+电池X1(5800毫安)+充电器+数据线+耳机+包装<\/txt><img size=\"53608\">http:\/\/img03.taobaocdn.com\/imgextra\/i3\/1716037031\/TB2lTSHbFXXXXbxXXXXXXXXXXXX-1716037031.jpg<\/img><img size=\"93991\">http:\/\/img01.taobaocdn.com\/imgextra\/i1\/1716037031\/TB2XtqGbFXXXXcvXXXXXXXXXXXX-1716037031.jpg<\/img><img size=\"73470\">http:\/\/img03.taobaocdn.com\/imgextra\/i3\/1716037031\/TB2n2_7XVXXXXc_XpXXXXXXXXXX-1716037031.jpg<\/img><img size=\"81937\">http:\/\/img04.taobaocdn.com\/imgextra\/i4\/1716037031\/TB2Gg9GbFXXXXckXXXXXXXXXXXX-1716037031.jpg<\/img><img size=\"133268\">http:\/\/img04.taobaocdn.com\/imgextra\/i4\/1716037031\/TB2nAqJbFXXXXc5XXXXXXXXXXXX-1716037031.jpg<\/img><img size=\"42087\">http:\/\/img03.taobaocdn.com\/imgextra\/i3\/1716037031\/TB2_RqEbFXXXXbXXpXXXXXXXXXX-1716037031.jpg<\/img><img size=\"43238\">http:\/\/img02.taobaocdn.com\/imgextra\/i2\/1716037031\/TB27xuGbFXXXXbSXXXXXXXXXXXX-1716037031.jpg<\/img><img size=\"42743\">http:\/\/img03.taobaocdn.com\/imgextra\/i3\/1716037031\/TB24UYeXFXXXXbUXpXXXXXXXXXX-1716037031.jpg<\/img><img size=\"53132\">http:\/\/img03.taobaocdn.com\/imgextra\/i3\/1716037031\/TB2BcyEbFXXXXbNXXXXXXXXXXXX-1716037031.jpg<\/img><img size=\"44266\">http:\/\/img03.taobaocdn.com\/imgextra\/i3\/1716037031\/TB2NxiuXVXXXXaPXpXXXXXXXXXX-1716037031.jpg<\/img><img size=\"55935\">http:\/\/img01.taobaocdn.com\/imgextra\/i1\/1716037031\/TB2xjaGbFXXXXbzXXXXXXXXXXXX-1716037031.jpg<\/img><img size=\"52260\">http:\/\/img02.taobaocdn.com\/imgextra\/i2\/1716037031\/TB2ufqeXVXXXXa8XpXXXXXXXXXX-1716037031.jpg<\/img><img size=\"100410\">http:\/\/img02.taobaocdn.com\/imgextra\/i2\/1716037031\/TB2Ct5FbFXXXXc.XXXXXXXXXXXX-1716037031.jpg<\/img><img size=\"33728\">http:\/\/img04.taobaocdn.com\/imgextra\/i4\/1716037031\/TB2.bSHbFXXXXbdXXXXXXXXXXXX-1716037031.jpg<\/img><img size=\"69849\">http:\/\/img04.taobaocdn.com\/imgextra\/i4\/1716037031\/TB28FuGbFXXXXb0XXXXXXXXXXXX-1716037031.jpg<\/img><img size=\"75694\">http:\/\/img02.taobaocdn.com\/imgextra\/i2\/1716037031\/TB2y_SIbFXXXXX8XXXXXXXXXXXX-1716037031.jpg<\/img><img size=\"74957\">http:\/\/img04.taobaocdn.com\/imgextra\/i4\/1716037031\/TB23bCGbFXXXXbaXpXXXXXXXXXX-1716037031.jpg<\/img><img size=\"71226\">http:\/\/img02.taobaocdn.com\/imgextra\/i2\/1716037031\/TB2kcaGbFXXXXbUXXXXXXXXXXXX-1716037031.jpg<\/img><img size=\"64402\">http:\/\/img03.taobaocdn.com\/imgextra\/i3\/1716037031\/TB2sR9HbFXXXXboXXXXXXXXXXXX-1716037031.jpg<\/img><img size=\"65372\">http:\/\/img02.taobaocdn.com\/imgextra\/i2\/1716037031\/TB280CGbFXXXXbGXXXXXXXXXXXX-1716037031.jpg<\/img><\/wapDesc>",
"type":"mobile"
},
"item_buy_info":
{
"cart_support":"true"
},
"item_info":
{
"in_sale":"true",
"item_props":
{
"item_property":
[
{"name":"CPU品牌","value":"ARM"},
{"name":"型号","value":"其他"},
{"name":"品牌","value":"100+"},
{"name":"型号","value":"100C"},
{"name":"上市时间","value":"2014年"},
{"name":"网络类型","value":"移动2G\/联通2G"},
{"name":"款式","value":"直板"},
{"name":"尺寸","value":"2.8英寸"},
{"name":"机身颜色","value":"黑色,红色,桔色,绿色,天蓝色"},
{"name":"套餐类型","value":"官方标配"},
{"name":"后置摄像头","value":"30万"},
{"name":"操作系统","value":"无操作系统"},
{"name":"附加功能","value":"双卡双待"},
{"name":"宝贝成色","value":"全新"},
{"name":"售后服务","value":"店铺三包"},
{"name":"触摸屏类型","value":"非触摸屏"},
{"name":"机身内存","value":"4MB"},
{"name":"键盘类型","value":"12键标准键盘"},
{"name":"厚度","value":"1CM以上"},
{"name":"分辨率","value":"160X128"},
{"name":"手机类型","value":"时尚手机,老人手机"},
{"name":"电池类型","value":"可拆卸式电池"},
{"name":"摄像头类型","value":"单摄像头"},
{"name":"视频显示格式","value":"其他"},
{"name":"网络模式","value":"双卡双模"},
{"name":"核心数","value":"无"},
{"name":"版本类型","value":"中国大陆"}
]
},
"pics":
{
"string":
[
"http:\/\/img.alicdn.com\/bao\/uploaded\/i4\/TB1Q3eoIpXXXXbCXFXXXXXXXXXX_!!0-item_pic.jpg",
"http:\/\/img.alicdn.com\/bao\/uploaded\/i4\/1716037031\/TB2yn7AcFXXXXcaXXXXXXXXXXXX_!!1716037031.jpg",
"http:\/\/img.alicdn.com\/bao\/uploaded\/i4\/1716037031\/TB28XWJdFXXXXXjXXXXXXXXXXXX_!!1716037031.jpg",
"http:\/\/img.alicdn.com\/bao\/uploaded\/i4\/1716037031\/TB2GK3GcFXXXXaBXXXXXXXXXXXX_!!1716037031.jpg",
"http:\/\/img.alicdn.com\/bao\/uploaded\/i2\/1716037031\/TB2fyZBcFXXXXb_XXXXXXXXXXXX_!!1716037031.jpg"
]
},
"sku_item":"true",
"start":"1429063200000",
"sub_title":"手 电 筒 LED远射强光。喇 叭 密封震撼立体音响效果。功能齐全,拨号语音 来电报号 照相 收音机 手机 微信 QQ 浏览器 音乐播放器 视频播放器。不仅是一款手机还是一款充电宝哦。可以给您的手机,小伙伴的手机无线续航哦。!保修两年,十五天无理由退换货,妈妈不喜欢退。狗狗不喜欢退。售后无忧",
"title":"【天天特价】三防路虎老人手机超长待机双卡直板T600户外微信正品"
},
"mobile_desc_info":
{
"desc_list":
{
"desc_fragment":
[
{"content":"http:\/\/img.alicdn.com\/imgextra\/i2\/1716037031\/TB2VHOHdFXXXXaKXpXXXXXXXXXX-1716037031.jpg","label":"img"},
{"content":"http:\/\/img02.taobaocdn.com\/imgextra\/i2\/1716037031\/TB2df1FbFXXXXXaXpXXXXXXXXXX-1716037031.jpg","label":"img"},
{"content":"!!!!特大惊喜!!!! 全部新升级版不只是充电宝手机,现在还能上微信 QQ各大时尚功能集于一身。此次升级还升级了电池。容量增加至5400毫安,超强续航。超长待机60天,手电筒不用开机就可以使用了。超强光束。 !!!!加量不加价!!! 更不用担心天天充电,采用防摔减震材质,德国密封技术,怎么摔都不怕坏。还有一键强光手电筒,雅马哈密封音响震撼喇叭,收音机,您一定爱不释手,最大的特点可以帮您的苹果三星手机彩充电哦。可为苹果4手机充满3次。无线续航您的爱机。!","label":"txt"},
{"content":"套餐详情介绍: 官方标配:手机+电池X1(5800毫安)+充电器+数据线+耳机+包装 套餐一:手机+电池X1(5800毫安)+充电器+数据线+耳机+包装+2G卡 套餐二:手机+电池X1(5800毫安)+充电器+数据线+耳机+包装+4G卡 套餐三:手机+电池X2(5800毫安)+充电器+数据线+耳机+包装+8G卡 套餐四:手机+电池X1(5800毫安)+充电器+数据线+耳机+包装","label":"txt"},
{"content":"http:\/\/img03.taobaocdn.com\/imgextra\/i3\/1716037031\/TB2lTSHbFXXXXbxXXXXXXXXXXXX-1716037031.jpg","label":"img"},
{"content":"http:\/\/img01.taobaocdn.com\/imgextra\/i1\/1716037031\/TB2XtqGbFXXXXcvXXXXXXXXXXXX-1716037031.jpg","label":"img"},
{"content":"http:\/\/img03.taobaocdn.com\/imgextra\/i3\/1716037031\/TB2n2_7XVXXXXc_XpXXXXXXXXXX-1716037031.jpg","label":"img"},
{"content":"http:\/\/img04.taobaocdn.com\/imgextra\/i4\/1716037031\/TB2Gg9GbFXXXXckXXXXXXXXXXXX-1716037031.jpg","label":"img"},
{"content":"http:\/\/img04.taobaocdn.com\/imgextra\/i4\/1716037031\/TB2nAqJbFXXXXc5XXXXXXXXXXXX-1716037031.jpg","label":"img"},
{"content":"http:\/\/img03.taobaocdn.com\/imgextra\/i3\/1716037031\/TB2_RqEbFXXXXbXXpXXXXXXXXXX-1716037031.jpg","label":"img"},
{"content":"http:\/\/img02.taobaocdn.com\/imgextra\/i2\/1716037031\/TB27xuGbFXXXXbSXXXXXXXXXXXX-1716037031.jpg","label":"img"},
{"content":"http:\/\/img03.taobaocdn.com\/imgextra\/i3\/1716037031\/TB24UYeXFXXXXbUXpXXXXXXXXXX-1716037031.jpg","label":"img"},
{"content":"http:\/\/img03.taobaocdn.com\/imgextra\/i3\/1716037031\/TB2BcyEbFXXXXbNXXXXXXXXXXXX-1716037031.jpg","label":"img"},
{"content":"http:\/\/img03.taobaocdn.com\/imgextra\/i3\/1716037031\/TB2NxiuXVXXXXaPXpXXXXXXXXXX-1716037031.jpg","label":"img"},
{"content":"http:\/\/img01.taobaocdn.com\/imgextra\/i1\/1716037031\/TB2xjaGbFXXXXbzXXXXXXXXXXXX-1716037031.jpg","label":"img"},
{"content":"http:\/\/img02.taobaocdn.com\/imgextra\/i2\/1716037031\/TB2ufqeXVXXXXa8XpXXXXXXXXXX-1716037031.jpg","label":"img"},
{"content":"http:\/\/img02.taobaocdn.com\/imgextra\/i2\/1716037031\/TB2Ct5FbFXXXXc.XXXXXXXXXXXX-1716037031.jpg","label":"img"},
{"content":"http:\/\/img04.taobaocdn.com\/imgextra\/i4\/1716037031\/TB2.bSHbFXXXXbdXXXXXXXXXXXX-1716037031.jpg","label":"img"},
{"content":"http:\/\/img04.taobaocdn.com\/imgextra\/i4\/1716037031\/TB28FuGbFXXXXb0XXXXXXXXXXXX-1716037031.jpg","label":"img"},
{"content":"http:\/\/img02.taobaocdn.com\/imgextra\/i2\/1716037031\/TB2y_SIbFXXXXX8XXXXXXXXXXXX-1716037031.jpg","label":"img"},
{"content":"http:\/\/img04.taobaocdn.com\/imgextra\/i4\/1716037031\/TB23bCGbFXXXXbaXpXXXXXXXXXX-1716037031.jpg","label":"img"},
{"content":"http:\/\/img02.taobaocdn.com\/imgextra\/i2\/1716037031\/TB2kcaGbFXXXXbUXXXXXXXXXXXX-1716037031.jpg","label":"img"},
{"content":"http:\/\/img03.taobaocdn.com\/imgextra\/i3\/1716037031\/TB2sR9HbFXXXXboXXXXXXXXXXXX-1716037031.jpg","label":"img"},
{"content":"http:\/\/img02.taobaocdn.com\/imgextra\/i2\/1716037031\/TB280CGbFXXXXbGXXXXXXXXXXXX-1716037031.jpg","label":"img"}
]
}
},
"price_info":
{
"item_price":
{
"price":
{
"name":"价格",
"price":"688.00"
},
"promotion_price":
{
"name":"天天特价",
"price":"115.00"
}
},
"sku_price_list":
{
"sku_price_item":
[
{"price":{"name":"价格","price":"688.00"},"promotion_price":{"name":"天天特价","price":"115.00"},"sku_id":"76293838076"},
{"price":{"name":"价格","price":"688.00"},"promotion_price":{"name":"天天特价","price":"115.00"},"sku_id":"76293838080"},
{"price":{"name":"价格","price":"688.00"},"promotion_price":{"name":"天天特价","price":"115.00"},"sku_id":"76293838084"},
{"price":{"name":"价格","price":"688.00"},"promotion_price":{"name":"天天特价","price":"115.00"},"sku_id":"76293838088"},
{"price":{"name":"价格","price":"688.00"},"promotion_price":{"name":"天天特价","price":"115.00"},"sku_id":"76293838092"}
]
}
},
"rate_info":
{
"rate_list":
{
"rate_item":
[
{"feedback":"刚拿到手机又掉价了","nick":"z**4"},
{"feedback":"出门刚回来评价晚了","nick":"z**4"},
{"feedback":"货很好,电板够大","nick":"8**c"},
{"feedback":"货很好,电板够大","nick":"8**c"},
{"feedback":"货很好,电板够大","nick":"8**c"},
{"feedback":"","nick":"a**2"},
{"feedback":"迷糊","nick":"蓝**c"},
{"feedback":"不理想","nick":"周**3"},
{"feedback":"","nick":"陈**4"},
{"feedback":"","nick":"l**0"}
]
}
},
"seller_info":
{
"seller_nick":"淘我所爱来来",
"seller_type":"taobao",
"shop_name":"金网时代"
},
"sku_info":
{
"pv_map_sku_list":
{
"pv_map_sku":
[
{"pv":"1627207:28326;5919063:6536025;12304035:21518;122216431:27772","sku_id":"76293838076"},
{"pv":"1627207:28341;5919063:6536025;12304035:21518;122216431:27772","sku_id":"76293838080"},
{"pv":"1627207:90554;5919063:6536025;12304035:21518;122216431:27772","sku_id":"76293838084"},
{"pv":"1627207:28335;5919063:6536025;12304035:21518;122216431:27772","sku_id":"76293838088"},
{"pv":"1627207:3232484;5919063:6536025;12304035:21518;122216431:27772","sku_id":"76293838092"}
]
},
"sku_props":
{
"sku_property":
[
{"prop_id":"1627207","prop_name":"机身颜色","values":{"sku_property_value":[{"name":"红色","value_id":"28326"},{"name":"黑色","value_id":"28341"},{"name":"桔色","value_id":"90554"},{"name":"绿色","value_id":"28335"},{"name":"天蓝色","value_id":"3232484"}]}},
{"prop_id":"5919063","prop_name":"套餐类型","values":{"sku_property_value":[{"name":"官方标配","value_id":"6536025"}]}},
{"prop_id":"12304035","prop_name":"机身内存","values":{"sku_property_value":[{"name":"4MB","value_id":"21518"}]}},
{"prop_id":"122216431","prop_name":"版本类型","values":{"sku_property_value":[{"name":"中国大陆","value_id":"27772"}]}}
]
}
},
"stock_info":
{
"item_quantity":"288",
"sku_quantity_list":
{
"sku_quantity":
[
{"quantity":"60","sku_id":"76293838076"},
{"quantity":"55","sku_id":"76293838080"},
{"quantity":"58","sku_id":"76293838084"},
{"quantity":"59","sku_id":"76293838088"},
{"quantity":"56","sku_id":"76293838092"}
]
}
}
},
"request_id":"zt90ye11rlq9"
}
}
淘宝(阿里百川)手机客户端开发日记第十五篇 JSON解析(四)的更多相关文章
- 淘宝(阿里百川)手机客户端开发日记第十二篇 mysql的认识
我这里用的是wamp,大家可以到网上去下载对应的包,自行安装,对于程序员来讲,安装软件大部分都应该不是问题的,所以我不去将具体安装的方法. wamp安装好后,在我们屏幕的右下角, 这样的图标,我们右键 ...
- 淘宝(阿里百川)手机客户端开发日记第十四篇 jsp提交含有上传控件表单乱码问题
今天我来总结昨天开发的一个简单的jsp web 应用程序时,在做一个调教表单,从servlet端获取数据,这个表单里含有上传文件控件.如果我们在测试的时候,获取数据的是乱码,这时,大家可以先去掉上传控 ...
- 淘宝(阿里百川)手机客户端开发日记第十篇 阿里百川服务器环境介绍之API文档的快速链接(四)
个人感觉比较重要的快速链接: http://open.taobao.com/doc/detail.htm?id=102513 http://open.taobao.com/doc/detail.htm ...
- 淘宝(阿里百川)手机客户端开发日记第十一篇 JSP+Servlet
由于本人从事.net开发已有多年经验,今天由于工作需要,我只能学习下JSP+Servlet,至于java web提供了更好的开发框架MVC,现在由于时间关系,我只好用JSP+Servlet来搭建服务器 ...
- 淘宝(阿里百川)手机客户端开发日记第一篇 android 主框架搭建(一)
android 主框架搭建(一) 1.开发环境:Android Studio 相继点击下一步,直接项目建立完毕(如下图) 图片看的效果如果很小,请放大您的浏览器显示百分比 转载请注明http://w ...
- 淘宝(阿里百川)手机客户端开发日记第九篇 Looper详解
public final class Looper: 官方的API: Class used to run a message loop for a thread. Threads by default ...
- 淘宝(阿里百川)手机客户端开发日记第五篇 SharedPreferences使用详解
我们知道,Android中数据存储技术由于如下几种 1 使用SharedPreferences存储数据 2 文件存储数据 3 SQLite数据库存储数据 4 使用ContentProvider存储数据 ...
- 淘宝(阿里百川)手机客户端开发日记第十三篇 mysql的连接
首先,我建立了一个包,里面存放了三个类文件,这三个文件是我从网络中找的,经过自己的整理.(我刚才查找想把这三个文件传上去,可能是自己对cnblogs的博客不太熟悉吧,没有找到,我只好粘贴代码了) 三个 ...
- 淘宝(阿里百川)手机客户端开发日记第八篇 Handler的使用方法
首先,我们先看下API文档的说明: A Handler allows you to send and process Message and Runnable objects associated w ...
随机推荐
- 初识Hadoop一,配置及启动服务
一.Hadoop简介: Hadoop是由Apache基金会所开发的分布式系统基础架构,实现了一个分布式文件系统(Hadoop Distributed File System),简称HDFS:Hadoo ...
- JavaScript排序算法——希尔排序
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/ ...
- 关于Linux发行版的选择
Linux发行版很多,分为以RedHat为代表的商业发行版和以Debian为代表的免费发行版.前者典型版本有CentOS.Fedora.SUSE等,后者的典型版本有Ubuntu等 CentOS.Ubu ...
- strcpy函数的实现
strcpy函数的实现 大家一般认为名不见经传strcpy函数实现不是很难,流行的strcpy函数写法是: char *my_strcpy(char *dst,const char *src) { a ...
- 《深入理解bootstrap》读书笔记:第一章 入门准备
一.bootstrap框架简介 Bootstrap是最流行的前端开发框架. 什么是框架:开发过程的半成品. bootstrap具有以下重要特性: (1)完整的CSS样式插件 (2)丰富的预定义样式表 ...
- useradd命令老是忘记的参数
useradd有些参数老是忘记,是用的少还是不熟练呢?记录下吧 [root@svn ~]# useradd --help 用法:useradd [选项] 登录 useradd -D useradd - ...
- 在项目中那个少用if else 语句,精简代码,便于维护的方法(1)
一般我在写一个函数的时候,可能需要一个回调函数,例如: function loadQtipCode(dom, title, content, width, showcb, hidecb) { $(do ...
- 北斗/GPS
北斗/GPS都是用的nmea通用协议. NMEA-0183协议定义的语句非常多,但是常用的或者说兼容性最广的语句只有$GPGGA.$GPGSA.$GPGSV.$GPRMC.$GPVTG.$GPGLL等 ...
- HTML5 LocalStorage 本地存储,刷新值还在
H5的两种存储技术的最大区别就是生命周期. 1. localStorage是本地存储,存储期限不限: 2. sessionStorage会话存储,页面关闭数据就会丢失. 使用方法: localStor ...
- Yii2 menu navbar nav小部件的使用示例
menu Menu::widget( [ [ 'label' => $menu['name'], 'url' => [$menu['route']], 'items' => [ [ ...