简单的json解析工具

news/2024/12/30 3:18:52/

json解析有太多的工具,例如gson,jackson等等,如果做一般的app都可以轻松导入,可是有一个问题,就是太大了,而且对于做第三方sdk项目的人来说,还可能出现重复。例如项目A要引用项目B,B是一个统计的sdk。A的项目开发人员觉得Gson非常棒,所以引用了这个项目作为jason解析工具,项目B也觉得Gson非常棒,同样引用,这样就会出现重复和B项目过大的问题。我现在开发的项目是B项目,不得不自己写一个通用json解析工具,越小越好,功能越简单越棒,因为其他的我根本用不到。出于这个需求,我写了一个把json字符转转bean对象的通用类,比较简陋,仅供参考。

要解析的一个字符串,最下边是从网易新闻抓的json包,随便找的,去下边自己看太长。如何做呢,首先生成bean对象,我用的as上边有一个json转bean的插件叫做GsonFommat的东西,有兴趣的自己去下,很省心。我把json转化为bean对象,然后调用工具类。代码如下:

    /*** 解析json数组* @param jsonString* @param clazz* @param <T>* @return*/public static <T> List parseJsonStringToObjectList(String jsonString, Class<T> clazz) {JSONTokener jsonTokener = new JSONTokener(jsonString);List resultList = null;try {JSONArray jsonArray = new JSONArray(jsonString);resultList = new ArrayList();for (int i = 0;i < jsonArray.length();i++){Object arrayElementObj = jsonArray.get(i);if (arrayElementObj.getClass().isPrimitive() || arrayElementObj.getClass() == String.class) {resultList.add(arrayElementObj);} else {JSONObject obj = (JSONObject) arrayElementObj;resultList.add(parseJsonStringToObject(obj.toString(), clazz));}}} catch (JSONException e) {e.printStackTrace();}return resultList;}
这里泛型T代表数组的泛型对象,返回是一个list。这里主要是引用了

parseJsonStringToObject
方法,它的源代码如下:

public static <T> T parseJsonStringToObject(String jsonString, Class<T> clazz) {T t;try {System.out.println("jsonString = " + jsonString);JSONObject jsonObject = new JSONObject(jsonString);if (jsonObject != null) {t = clazz.newInstance();Field[] allFields = clazz.getDeclaredFields();for (Field field : allFields) {field.setAccessible(true);if (field.getType().getName().contains("String")) {try {String valueStr = jsonObject.getString(field.getName());field.set(t, valueStr);} catch (JSONException e) {}} else if (field.getType().getName().contains("int")) {try {int valueInt = jsonObject.getInt(field.getName());field.set(t, valueInt);} catch (JSONException e) {}} else if (field.getType().getName().contains("List")) {List list = new ArrayList();try {JSONArray childArray = jsonObject.getJSONArray(field.getName());for (int i = 0; i < childArray.length(); i++) {Object arrayElementObj = childArray.get(i);if (arrayElementObj.getClass().isPrimitive() || arrayElementObj.getClass() == String.class) {list.add(arrayElementObj);} else {JSONObject obj = (JSONObject) arrayElementObj;ParameterizedType parameterizedType = (ParameterizedType) field.getGenericType();list.add(parseJsonStringToObject(obj.toString(), (Class) parameterizedType.getActualTypeArguments()[0]));}}} catch (JSONException e) {}field.set(t, list);} else {try {JSONObject childJson = jsonObject.getJSONObject(field.getName());Object childObj = parseJsonStringToObject(childJson.toString(), field.getType());field.set(t, childObj);} catch (JSONException e) {}}}return t;}} catch (Exception e) {e.printStackTrace();}return null;}

主要思路就是根据json中key的类型生成对应的对象,然后层层迭代,代码很简单,亲测,能够解析正常的jsonstring的数组和对象,这里一定要注意,节点的名称一定要对应。就这么多,希望能帮到大家。对了这里有一个问题就是bean对象的数据类型只支持int和string类型,boolean,float,double什么都可以自己加,看懂了几行的事情。

[{"ads": [{"action": "1","action_params": {"link_url": "http://www.lofter.com/tag/%E4%B8%80%E4%B8%AA%E4%B8%96%E7%95%8C%E4%B8%A4%E7%A7%8D%E4%BA%BA%E7%94%9F?act=qbdashboardside_20121217_01#"},"ad_loc": 6,"ad_type": 0,"category": "FOCUS2","content": "","expired_time": 1469807999000,"flight_id": "124","id": "50608","is_dsp_backup": 0,"is_sens": 0,"location": "1","loop_time": 0,"main_title": "\"中国不平等现状\"影像征集活动","monitor": "","monitorClickUrl": "","monitorReplaceDeviceId": 0,"monitorShowUrl": "","ratio": "33.3","res_url": ["http://img1.126.net/channel6/2016/ad/1080624_0727a.jpg","","",""],"show_num": 3,"show_time": "2.5","style": "3","sub_title": "","thirdplat": 0,"vdeg": "","vdet": "","vdog": "","vdot": "","video_url": ""}],"error": "","next_req": 600,"result": 0,"rolls": 3},{"ads": [{"action": "1","action_params": {"link_url": "http://c.3g.163.com/nc/qa/activity/musclefighting/index.html"},"ad_loc": 6,"ad_type": 0,"category": "FOCUS2","content": "","expired_time": 1469894399000,"flight_id": "243","id": "50420","is_dsp_backup": 0,"is_sens": 0,"location": "2","loop_time": 0,"main_title": "私教宁泽涛带你练出人鱼线!","monitor": "","monitorClickUrl": "","monitorReplaceDeviceId": 0,"monitorShowUrl": "","ratio": "33.3","res_url": ["http://img1.126.net/channel6/2016/ad/1080624_0726.jpg","","",""],"show_num": 3,"show_time": "2.5","style": "3","sub_title": "","thirdplat": 0,"vdeg": "","vdet": "","vdog": "","vdot": "","video_url": ""},{"action": "1","action_params": {"link_url": "http://c.3g.163.com/uc/books/web/?utm_source=NewsApp&utm_medium=cpc&utm_campaign=books"},"ad_loc": 6,"ad_type": 0,"category": "FOCUS2","content": "","expired_time": 1469894399000,"flight_id": "243","id": "50396","is_dsp_backup": 0,"is_sens": 0,"location": "2","loop_time": 0,"main_title": "你的新闻 TA的图书","monitor": "","monitorClickUrl": "","monitorReplaceDeviceId": 0,"monitorShowUrl": "","ratio": "33.3","res_url": ["http://img1.126.net/channel6/2016/ad/1080624_0725.jpg","","",""],"show_num": 3,"show_time": "2.5","style": "3","sub_title": "","thirdplat": 0,"vdeg": "","vdet": "","vdog": "","vdot": "","video_url": ""},{"action": "1","action_params": {"link_url": "http://3g.163.com/links/7116"},"ad_loc": 6,"ad_type": 0,"category": "FOCUS2","content": "","expired_time": 1469807999000,"flight_id": "243","id": "50379","is_dsp_backup": 0,"is_sens": 0,"location": "2","loop_time": 1,"main_title": "国礼训犬师 解锁训犬难题","monitor": "","monitorClickUrl": "","monitorReplaceDeviceId": 0,"monitorShowUrl": "","ratio": "33.3","res_url": ["http://img1.126.net/channel4/other/1080624_0723xq.jpg","","",""],"show_num": 3,"show_time": "2.5","style": "3","sub_title": "","thirdplat": 0,"vdeg": "","vdet": "","vdog": "","vdot": "","video_url": ""}],"error": "","next_req": 600,"result": 0,"rolls": 3},{"ads": [{"action": "1","action_params": {"link_url": "http://e.eqxiu.com/s/boNdn3st"},"ad_loc": 4,"category": "FOCUS2","content": "","expired_time": 1469699850211,"flight_id": "694","id": "50464","is_sens": 1,"location": "20","loop_time": 0,"main_title": "德国蓝卡项目牛在哪里","monitor": "mmaMonitor","monitorClickUrl": "http://afptrack.alimama.com/clk?bid=0a671c9100015799d002438203688400&pid=mm_31464994_13336663_57438917&cid=96501&mid=73882&oid=13103&productType=1&qytInfoMTime=1469628038&e=srUJ4%2FO0xl20LVip4%2BMlAeWKL6Od8OV1sH7Hbf8T%2FEEJKLeoq3n1X%2BartVKqwZaBigwQM%2FJQvb3RBoLew0bGWQo3zrIOQoOxQbJgY5ibTm9b2I%2Ba8%2Fb%2FFRz%2BArqzKd5usFd1BhHf9zqF91zOnvcNh0ofswPWh8DwvAgqIVpbLZY%3D&k=173","monitorShowUrl": "http://afptrack.alimama.com/imp?bid=0a671c9100015799d002438203688400&pid=mm_31464994_13336663_57438917&cid=96501&mid=73882&oid=13103&productType=1&qytInfoMTime=1469628038","ratio": "16.69","res_url": ["http://afp.alicdn.com/afp-creative/creative/u31464994/f9c069ad72ccefe7e2525acf7be5e246.jpg","","",""],"show_num": 3,"show_time": "2.5","style": "3","sub_title": ""},{"action": "1","action_params": {"link_url": "http://clickc.admaster.com.cn/c/a71120,b1192093,c369,i0,m101,h"},"ad_loc": 4,"ad_type": 0,"category": "FOCUS2","content": "","expired_time": 1469807999000,"flight_id": "694","id": "50581","is_dsp_backup": 0,"is_sens": 0,"location": "20","loop_time": 1,"main_title": "福特金牛座EcoBoost180豪华型现已全新上市","monitor": "","monitorClickUrl": "","monitorReplaceDeviceId": 0,"monitorShowUrl": "","ratio": "16.68","res_url": ["http://img1.126.net/channel5/024254/270202_160722.jpg","","",""],"show_num": 3,"show_time": "2.5","style": "3","sub_title": "","thirdplat": 0,"vdeg": "","vdet": "","vdog": "","vdot": "","video_url": ""},{"action": "1","action_params": {"link_url": "http://c.admaster.com.cn/c/a63668,b971365,c369,i0,m101,h"},"ad_loc": 4,"ad_type": 0,"category": "FOCUS2","content": "","expired_time": 1469807999000,"flight_id": "694","id": "50582","is_dsp_backup": 0,"is_sens": 0,"location": "20","loop_time": 1,"main_title": "今晚8点全新天籁上市 外观科技配置升级","monitor": "","monitorClickUrl": "","monitorReplaceDeviceId": 0,"monitorShowUrl": "","ratio": "16.68","res_url": ["http://img1.126.net/channel5/022471/270202-160727.jpg","","",""],"show_num": 3,"show_time": "2.5","style": "3","sub_title": "","thirdplat": 0,"vdeg": "","vdet": "","vdog": "","vdot": "","video_url": ""},{"action": "1","action_params": {"link_url": "http://3g.163.com/ntes/16/0728/00/BT1618Q30096400N.html"},"ad_loc": 4,"ad_type": 0,"category": "FOCUS2","content": "","expired_time": 1469807999000,"flight_id": "694","id": "50637","is_dsp_backup": 0,"is_sens": 0,"location": "20","loop_time": 3,"main_title": "哪款智能电动车更高端?雅迪Z3深度测试","monitor": "mmaMonitor","monitorClickUrl": "http://e.cn.miaozhen.com/r/k=2026249&p=71UQx&dx=0&rt=2&ns=__IP__&ni=__IESID__&v=__LOC__&mo=__OS__&m0=__OPENUDID__&m0a=__DUID__&m1=__ANDROIDID1__&m1a=__ANDROIDID__&m2=__IMEI__&m4=__AAID__&m5=__IDFA__&m6=__MAC1__&m6a=__MAC__&o=","monitorReplaceDeviceId": 0,"monitorShowUrl": "","ratio": "49.95","res_url": ["http://img1.126.net/channel5/024369/270x202_160728.jpg","","",""],"show_num": 3,"show_time": "2.5","style": "3","sub_title": "","thirdplat": 0,"vdeg": "","vdet": "","vdog": "","vdot": "","video_url": ""}],"error": "","next_req": 600,"result": 0,"rolls": 6},{"ads": [{"action": "1","action_params": {"link_url": "http://m.icbc.com.cn/icbc/0712gyewm4/2.htm"},"ad_loc": 11,"ad_type": 0,"category": "FOCUS2","content": "","expired_time": 1469807999000,"flight_id": "776","id": "50575","is_dsp_backup": 0,"is_sens": 0,"location": "21","loop_time": 1,"main_title": "二维码支付消费20立减10,融e联线下扫码立享优惠","monitor": "","monitorClickUrl": "","monitorReplaceDeviceId": 0,"monitorShowUrl": "","ratio": "16.65","res_url": ["http://img1.126.net/channel5/024240/270x202_160727.jpg","","",""],"show_num": 3,"show_time": "2.5","style": "3","sub_title": "","thirdplat": 0,"vdeg": "","vdet": "","vdog": "","vdot": "","video_url": ""},{"action": "1","action_params": {"link_url": "http://clickc.admaster.com.cn/c/a71601,b1210170,c3078,i0,m101,h"},"ad_loc": 11,"ad_type": 0,"category": "FOCUS2","content": "","expired_time": 1469894399000,"flight_id": "776","id": "50574","is_dsp_backup": 0,"is_sens": 0,"location": "21","loop_time": 1,"main_title": "理想音乐第二季正式开启","monitor": "","monitorClickUrl": "","monitorReplaceDeviceId": 0,"monitorShowUrl": "","ratio": "16.67","res_url": ["http://img1.126.net/autoftp/ads/0724_sw4m.jpg","","",""],"show_num": 3,"show_time": "2.5","style": "3","sub_title": "","thirdplat": 0,"vdeg": "","vdet": "","vdog": "","vdot": "","video_url": ""},{"action": "1","action_params": {"link_url": "http://e.changan.com.cn/marketing2016_9/h5/index.html?trail_channel_from=netease"},"ad_loc": 11,"ad_type": 0,"category": "FOCUS2","content": "","expired_time": 1469807999000,"flight_id": "776","id": "50573","is_dsp_backup": 0,"is_sens": 0,"location": "21","loop_time": 1,"main_title": "“置”得7乐“换”新出发 CX70欧尚补贴5000元","monitor": "","monitorClickUrl": "","monitorReplaceDeviceId": 0,"monitorShowUrl": "","ratio": "16.67","res_url": ["http://img1.126.net/channel19/023612/270202_0703.jpg","","",""],"show_num": 3,"show_time": "2.5","style": "3","sub_title": "","thirdplat": 0,"vdeg": "","vdet": "","vdog": "","vdot": "","video_url": ""},{"action": "1","action_params": {"link_url": "http://s.trafficjam.cn/m,Djb9ouUcp4XuIIF9HPZB,mo=__OS__&ns=__IP__&m1=__IMEI__&m2=__IDFA__&m3=__DUID__&m1a=__ANDROIDID__&m2a=__OPENUDID__&m9=__MAC1__&m9b=__MAC__&m1b=__AAID__&m1c=__ANDROIDID1__&m9c=__ODIN__&ts=__TS__&st=__STS__"},"ad_loc": 11,"ad_type": 0,"category": "FOCUS2","content": "","expired_time": 1469807999000,"flight_id": "776","id": "50572","is_dsp_backup": 0,"is_sens": 0,"location": "21","loop_time": 1,"main_title": "下载咪咕影院 在线看电影免流量费 ","monitor": "","monitorClickUrl": "","monitorReplaceDeviceId": 0,"monitorShowUrl": "","ratio": "16.67","res_url": ["http://img1.126.net/channel5/024219/270202_160727.jpg","","",""],"show_num": 3,"show_time": "2.5","style": "3","sub_title": "","thirdplat": 0,"vdeg": "","vdet": "","vdog": "","vdot": "","video_url": ""},{"action": "1","action_params": {"link_url": "http://a1514.oadz.com/link/C/1514/4695/n4R.BL8UECK80pyscheRzrOqM8I_/p0da/0/http://e.cn.miaozhen.com/r/k=2023732&p=71Rod&dx=0&rt=2&vo=34c5c92e6&vr=2&o=http%253A%252F%252Fc.m.suning.com%252Fchannel%252Fwapheidian00036.html%253Futm_source%253Dyd-163%2526utm_medium%253Dxxl11%2526utm_campaign%253D"},"ad_loc": 11,"ad_type": 0,"category": "FOCUS2","content": "","expired_time": 1469807999000,"flight_id": "776","id": "50599","is_dsp_backup": 0,"is_sens": 0,"location": "21","loop_time": 1,"main_title": "大品牌彩电都在这,超实惠!","monitor": "","monitorClickUrl": "","monitorReplaceDeviceId": 0,"monitorShowUrl": "","ratio": "16.67","res_url": ["http://img1.126.net/channel5/023964/270-202k_160727.jpg","http://img1.126.net/channel5/023964/270-202s_160727.jpg","http://img1.126.net/channel5/023964/270-202sn_160727.jpg",""],"show_num": 3,"show_time": "2.5","style": "11","sub_title": "","thirdplat": 0,"vdeg": "","vdet": "","vdog": "","vdot": "","video_url": ""},{"action": "1","action_params": {"link_url": "http://e.cn.miaozhen.com/r/k=2021339&p=70YJn&dx=0&rt=2&ns=__IP__&ni=__IESID__&v=__LOC__&ro=sm&vo=3176ad884&vr=2&o=http%3A%2F%2Fgo.163.com%2F2016%2F0509%2Fmasterkong-wap%2F"},"ad_loc": 11,"ad_type": 0,"category": "FOCUS2","content": "","expired_time": 1469807999000,"flight_id": "776","id": "50625","is_dsp_backup": 0,"is_sens": 0,"location": "21","loop_time": 1,"main_title": "热血青春,永不散场,致那些年和你一起打球的兄弟","monitor": "","monitorClickUrl": "","monitorReplaceDeviceId": 0,"monitorShowUrl": "","ratio": "16.67","res_url": ["http://img1.126.net/channel5/023519/270202_1360728.jpg","","",""],"show_num": 3,"show_time": "2.5","style": "3","sub_title": "","thirdplat": 0,"vdeg": "","vdet": "","vdog": "","vdot": "","video_url": ""}],"error": "","next_req": 600,"result": 0,"rolls": 6},{"ads": [{"action": "1","action_params": {"link_url": "http://vda.m.youzu.com/?q=577a4a4d4fe4d"},"ad_loc": 17,"ad_type": 0,"category": "FOCUS2","content": "","expired_time": 1469807999000,"flight_id": "778","id": "50624","is_dsp_backup": 0,"is_sens": 0,"location": "22","loop_time": 1,"main_title": "你手机里竟然没有这款游戏?","monitor": "","monitorClickUrl": "","monitorReplaceDeviceId": 0,"monitorShowUrl": "","ratio": "16.7","res_url": ["http://img1.126.net/channel5/024226/1-270x202_160728.jpg","http://img1.126.net/channel5/024226/2-270x202_160728.jpg","http://img1.126.net/channel5/024226/3-270x202_160728.jpg",""],"show_num": 3,"show_time": "2.5","style": "11","sub_title": "","thirdplat": 0,"vdeg": "","vdet": "","vdog": "","vdot": "","video_url": ""},{"action": "1","action_params": {"link_url": "http://ne.1rtb.com/clk?ext_data=b2lkPTExMDAxMDgzNjEsY2lkPUNRazBaVEptWWpjd1pHVTJZVGM1WkRjSk1EWTBZVGM0WTJFd1lXTTFZVEl6T0ElM0QlM0QsdXVpZD1VRDdVcW03MjJmalpmYUUyNmlRdWJ2LGV4PW5lLHBjPTAsbGlkPSx1dD0xNDY5Njk4MDUwLGRvbT0scGlkPTc3OCxvY2M9Y2ltLGNjcD0sYWlkPTExMDAwMDYwOTk%3D&ver=1&url=http%3A%2F%2Fapp.duorongcf.com%2Ffinancing%3FtoFrom%3Dwyxw"},"ad_loc": 17,"category": "FOCUS2","content": "","expired_time": 1469699850247,"flight_id": "778","id": "50149","is_sens": 1,"location": "22","loop_time": 1,"main_title": "手机注册享好礼,新人专享!","monitor": "mmaMonitor","monitorClickUrl": "","monitorShowUrl": "http://ne.1rtb.com/imp?ext_data=b2lkPTExMDAxMDgzNjEsY2lkPUNRazBaVEptWWpjd1pHVTJZVGM1WkRjSk1EWTBZVGM0WTJFd1lXTTFZVEl6T0ElM0QlM0QsdXVpZD1VRDdVcW03MjJmalpmYUUyNmlRdWJ2LGV4PW5lLHBjPTAsbGlkPSx1dD0xNDY5Njk4MDUwLGRvbT0scGlkPTc3OCxvY2M9Y2ltLGNjcD0sYWlkPTExMDAwMDYwOTk%3D&ver=1&reqid=ne&price=MjAwMDAwMDA","ratio": "16.7","res_url": ["http://img1.126.net/autoftp/pairui/4b54a71c99f81966.jpg","","",""],"show_num": 3,"show_time": "2.5","style": "10","sub_title": ""},{"action": "1","action_params": {"link_url": "http://c.3g.163.com/nc/qa/light/back.html?docid=BOVED8NE00964MBE"},"ad_loc": 17,"ad_type": 11,"category": "FOCUS2","content": "","dsp_id": "55a6FeIkop","expired_time": 1470067199000,"flight_id": "778","id": "50263","is_dsp_backup": 0,"is_sens": 1,"location": "22","loop_time": 1,"main_title": "曾经最坏的日子变成了最好的","monitor": "","monitorClickUrl": "","monitorReplaceDeviceId": 0,"monitorShowUrl": "","ratio": "16.7","req_id": "req163mad502631469169187657","res_url": ["http://img6.cache.netease.com/m/2016/6/13/201606131451508d094.jpg","","",""],"show_num": 3,"show_time": "2.5","style": "3","sub_title": "","thirdplat": 19,"vdeg": "","vdet": "","vdog": "","vdot": "","video_url": ""},{"action": "1","action_params": {"link_url": "http://m.hd.meizu.com/yuyue/mx6.html?rc=163"},"ad_loc": 17,"ad_type": 0,"category": "FOCUS2","content": "","expired_time": 1469980799000,"flight_id": "778","id": "50443","is_dsp_backup": 0,"is_sens": 0,"location": "22","loop_time": 1,"main_title": "遇见好照片,魅族 MX6 售1999元起","monitor": "","monitorClickUrl": "","monitorReplaceDeviceId": 0,"monitorShowUrl": "","ratio": "16.7","res_url": ["http://img1.126.net/channel5/023647/270202_160725.jpg","","",""],"show_num": 3,"show_time": "2.5","style": "3","sub_title": "","thirdplat": 0,"vdeg": "","vdet": "","vdog": "","vdot": "","video_url": ""},{"action": "1","action_params": {"link_url": "http://e.eqxiu.com/s/boNdn3st"},"ad_loc": 17,"category": "FOCUS2","content": "","expired_time": 1469699850212,"flight_id": "778","id": "50629","is_sens": 1,"location": "22","loop_time": 2,"main_title": "德国蓝卡项目牛在哪里","monitor": "mmaMonitor","monitorClickUrl": "http://afptrack.alimama.com/clk?bid=0a67342400005799d00221050348b69e&pid=mm_31464994_13336663_57440870&cid=96501&mid=73882&oid=13103&productType=1&qytInfoMTime=1469628038&e=uNjKfYG8mKaMpq0A4M5XO4J%2FT3%2FOrx01hl4MjjN7JIGcp4SB7QSrHSEmKDXEn2K9igwQM%2FJQvb3RBoLew0bGWQo3zrIOQoOxQbJgY5ibTm9b2I%2Ba8%2Fb%2FFRz%2BArqzKd5usFd1BhHf9zqF91zOnvcNh0ofswPWh8DwvAgqIVpbLZY%3D&k=173","monitorShowUrl": "http://afptrack.alimama.com/imp?bid=0a67342400005799d00221050348b69e&pid=mm_31464994_13336663_57440870&cid=96501&mid=73882&oid=13103&productType=1&qytInfoMTime=1469628038","ratio": "33.2","res_url": ["http://afp.alicdn.com/afp-creative/creative/u31464994/f9c069ad72ccefe7e2525acf7be5e246.jpg","","",""],"show_num": 3,"show_time": "2.5","style": "3","sub_title": ""}],"error": "","next_req": 600,"result": 0,"rolls": 6},{"ads": [{"action": "1","action_params": {"link_url": "http://w.m.taobao.com/api/click?sid=5799d002498eb1f7b91049fe&slot_id=66879&action_index=0&category=20&promoter=tanx_599404370001&os=android&layout_type=12&action_type=2&psid=5799d002498eb1f7b91049fe&pid=mm_16143929_10750306_42794851&trid=&p=feed_tanx_dt:smallImg,rt:itemlist&nw_id=&round_id=&tdsp_id=17825897&from=api&utdid=&url=http%3A%2F%2Fclick.mz.simba.taobao.com%2Fecpm%3Fe%3Dtszy2sc3GromgME64bmjnBsQmLP5zomM5eFGbvpsppTGfGH2%252FgZyb3skXC3a9qjOvnJ1wofTXcLvnkRIjjSSpwE9beaNyIfBf0l%252FYxh37COiMoOj9JFNc2NP0AceBszfnANmB0DzlcE7uKdxGBzw4kJ5HXwD%252FnoI9H8FrrMmb%252BivTjmAz0BMqGntquUOavCS%252Fpj8BNZVF%252BvfYussqfqrYCm%252BuS%252FQUm9CFuZr0B3yoU%252BbOtpymVHi27RwDRsZeuWx7CfqMkKLaH0dB3iHVixeVpxMwPVGAI%252BYh8IhZk4SFiKVAFc7D7YEBQ%253D%253D%26u%3Dhttps%253A%252F%252Fcat.m.taobao.com%252Fpage%252F255713%253Fspm%253D0.0.0.0.2rDtOT%2526shop_id%253D63035016%2523__c7b76fe0f1%2526dpd%253D%25257B%252522pvid%252522%25253A%2525226b40b70a5c365799d002000000882772%252522%25252C%252522os%252522%25253A%252522android%252522%25252C%252522di%252522%25253A%252522%252522%25257D%26k%3D313&token=5cd5"},"ad_loc": 23,"category": "FOCUS2","content": "","expired_time": 1469699850284,"flight_id": "963","id": "48823","is_sens": 1,"location": "23","loop_time": 2,"main_title": "夏季男士网布鞋,货到付款1.8折","monitor": "mmaMonitor","monitorClickUrl": "","monitorShowUrl": "http://w.m.taobao.com/api/r?sid=5799d002498eb1f7b91049fe&slot_id=66879&action_index=0&category=20&promoter=tanx_599404370001&os=android&layout_type=12&action_type=0&psid=5799d002498eb1f7b91049fe&pid=mm_16143929_10750306_42794851&trid=&p=feed_tanx_dt:smallImg,rt:itemlist&nw_id=&round_id=&tdsp_id=17825897&from=api&utdid=","ratio": "50.0","res_url": ["http://ossgw.alicdn.com/creatives-assets/image/crop/2016/06/30/f1fa238a-5313-4bd6-bd39-502b5f3e2141.jpg","","",""],"show_num": 3,"show_time": "2.5","style": "3","sub_title": ""},{"action": "1","action_params": {"link_url": "http://c.3g.163.com/nc/qa/light/back.html?docid=BOVED8NE00964MBE"},"ad_loc": 23,"ad_type": 11,"category": "FOCUS2","content": "","dsp_id": "FaPluJoxPp","expired_time": 1475337599000,"flight_id": "963","id": "48745","is_dsp_backup": 0,"is_sens": 1,"location": "23","loop_time": 2,"main_title": "曾经最坏的日子变成了最好的","monitor": "","monitorClickUrl": "","monitorReplaceDeviceId": 0,"monitorShowUrl": "","ratio": "50.0","req_id": "req163mad487451467275632354","res_url": ["http://img6.cache.netease.com/m/2016/6/13/201606131451508d094.jpg","","",""],"show_num": 3,"show_time": "2.5","style": "3","sub_title": "","thirdplat": 19,"vdeg": "","vdet": "","vdog": "","vdot": "","video_url": ""}],"error": "","next_req": 600,"result": 0,"rolls": 4},{"ads": [{"action": "1","action_params": {"link_url": "http://c.3g.163.com/nc/qa/light/back.html?docid=BP6QQLQV00964MBE"},"ad_loc": 29,"ad_type": 11,"category": "FOCUS2","content": "","dsp_id": "uu5GayIP8f","expired_time": 1470067199000,"flight_id": "1020","id": "49976","is_dsp_backup": 0,"is_sens": 1,"location": "24","loop_time": 2,"main_title": "那一年,还好遇见你","monitor": "","monitorClickUrl": "","monitorReplaceDeviceId": 0,"monitorShowUrl": "","ratio": "50.0","req_id": "req163mad499761468893458858","res_url": ["http://img6.cache.netease.com/m/2016/6/13/201606131520276eb0b.jpg","","",""],"show_num": 3,"show_time": "2.5","style": "10","sub_title": "","thirdplat": 19,"vdeg": "","vdet": "","vdog": "","vdot": "","video_url": ""},{"action": "1","action_params": {"link_url": "http://c.3g.163.com/nc/qa/light/back.html?docid=BP6QQLQV00964MBE"},"ad_loc": 29,"ad_type": 11,"category": "FOCUS2","content": "","dsp_id": "uu5GayIP8f","expired_time": 1475337599000,"flight_id": "1020","id": "48743","is_dsp_backup": 0,"is_sens": 1,"location": "24","loop_time": 2,"main_title": "那一年,还好遇见你","monitor": "","monitorClickUrl": "","monitorReplaceDeviceId": 0,"monitorShowUrl": "","ratio": "50.0","req_id": "req163mad487431467275476718","res_url": ["http://img6.cache.netease.com/m/2016/6/13/201606131520276eb0b.jpg","","",""],"show_num": 3,"show_time": "2.5","style": "10","sub_title": "","thirdplat": 19,"vdeg": "","vdet": "","vdog": "","vdot": "","video_url": ""}],"error": "","next_req": 600,"result": 0,"rolls": 2},{"ads": [{"action": "1","action_params": {"link_url": "http://ne.1rtb.com/clk?ext_data=b2lkPTExMDAxMDgzNjAsY2lkPUNRazBaVEptWWpjd1pHVTJZVGM1WkRjSk1EWTBZVGM0WTJFd1lXTTFZVEl6T0ElM0QlM0QsdXVpZD1VREVmVXZVQjZGYmpuaXJFRnFBaWpOLGV4PW5lLHBjPTAsbGlkPSx1dD0xNDY5Njk4MDUwLGRvbT0scGlkPTEwMjIsb2NjPWNpbSxjY3A9LGFpZD0xMTAwMDA2MTAx&ver=1&url=http%3A%2F%2Fapp.duorongcf.com%2Ffinancing%3FtoFrom%3Dwyxw"},"ad_loc": 35,"category": "FOCUS2","content": "","expired_time": 1469699850264,"flight_id": "1022","id": "49985","is_sens": 1,"location": "25","loop_time": 1,"main_title": "理财用多融,方便又放心!","monitor": "mmaMonitor","monitorClickUrl": "","monitorShowUrl": "http://ne.1rtb.com/imp?ext_data=b2lkPTExMDAxMDgzNjAsY2lkPUNRazBaVEptWWpjd1pHVTJZVGM1WkRjSk1EWTBZVGM0WTJFd1lXTTFZVEl6T0ElM0QlM0QsdXVpZD1VREVmVXZVQjZGYmpuaXJFRnFBaWpOLGV4PW5lLHBjPTAsbGlkPSx1dD0xNDY5Njk4MDUwLGRvbT0scGlkPTEwMjIsb2NjPWNpbSxjY3A9LGFpZD0xMTAwMDA2MTAx&ver=1&reqid=ne&price=MjAwMDAwMDA","ratio": "50.0","res_url": ["http://img1.126.net/autoftp/pairui/ce61fb342cd8348b.jpg","http://img1.126.net/autoftp/pairui/c748db6119cd163c.jpg","http://img1.126.net/autoftp/pairui/4198deb283ac024e.jpg",""],"show_num": 3,"show_time": "2.5","style": "11","sub_title": ""},{"action": "1","action_params": {"link_url": "http://e.eqxiu.com/s/boNdn3st"},"ad_loc": 35,"category": "FOCUS2","content": "","expired_time": 1469699850210,"flight_id": "1022","id": "50226","is_sens": 1,"location": "25","loop_time": 1,"main_title": "德国蓝卡项目牛在哪里","monitor": "mmaMonitor","monitorClickUrl": "http://afptrack.alimama.com/clk?bid=0a67349c00005799d0026ac2033b05e5&pid=mm_31464994_13336663_57442858&cid=96501&mid=73882&oid=13103&productType=1&qytInfoMTime=1469628038&e=6I7voNlLHwSMpq0A4M5XOy9Fsvytu%2Fqkx750mTeJNOZcQc1b47Xybih15HYVPqqqigwQM%2FJQvb3RBoLew0bGWQo3zrIOQoOxQbJgY5ibTm9b2I%2Ba8%2Fb%2FFRz%2BArqzKd5usFd1BhHf9zqF91zOnvcNh0ofswPWh8DwvAgqIVpbLZY%3D&k=173","monitorShowUrl": "http://afptrack.alimama.com/imp?bid=0a67349c00005799d0026ac2033b05e5&pid=mm_31464994_13336663_57442858&cid=96501&mid=73882&oid=13103&productType=1&qytInfoMTime=1469628038","ratio": "50.0","res_url": ["http://afp.alicdn.com/afp-creative/creative/u31464994/f9c069ad72ccefe7e2525acf7be5e246.jpg","","",""],"show_num": 3,"show_time": "2.5","style": "3","sub_title": ""}],"error": "","next_req": 600,"result": 0,"rolls": 2},{"ads": [{"action": "1","action_params": {"link_url": "http://xf.house.163.com/bj/0SWB.html"},"ad_loc": 47,"ad_type": 0,"category": "FOCUS2","content": "","expired_time": 1469894399000,"flight_id": "1142","id": "50578","is_dsp_backup": 0,"is_sens": 0,"location": "27","main_title": "五环城市别墅 楼王现房臻藏","monitor": "","monitorClickUrl": "","monitorReplaceDeviceId": 0,"monitorShowUrl": "","ratio": "25.0","res_url": ["http://img1.126.net/channel19/023965/984328_0630xw.jpg","","",""],"show_num": 3,"show_time": "2.5","style": "10","sub_title": "","thirdplat": 0,"vdeg": "","vdet": "","vdog": "","vdot": "","video_url": ""},{"action": "1","action_params": {"link_url": "http://m.house.163.com/bj/0Sff.html"},"ad_loc": 47,"ad_type": 0,"category": "FOCUS2","content": "","expired_time": 1469807999000,"flight_id": "1142","id": "50498","is_dsp_backup": 0,"is_sens": 0,"location": "27","main_title": "首付21万起 得精装三室 ","monitor": "","monitorClickUrl": "","monitorReplaceDeviceId": 0,"monitorShowUrl": "","ratio": "25.0","res_url": ["http://img1.126.net/channel5/024186/984328_160712.jpg","","",""],"show_num": 3,"show_time": "2.5","style": "10","sub_title": "","thirdplat": 0,"vdeg": "","vdet": "","vdog": "","vdot": "","video_url": ""},{"action": "1","action_params": {"link_url": "http://bj.house.163.com/special/jdhczty/"},"ad_loc": 47,"ad_type": 0,"category": "FOCUS2","content": "","expired_time": 1469894399000,"flight_id": "1142","id": "50499","is_dsp_backup": 0,"is_sens": 0,"location": "27","main_title": "专享15年一贯制精英教育资源","monitor": "","monitorClickUrl": "","monitorReplaceDeviceId": 0,"monitorShowUrl": "","ratio": "25.0","res_url": ["http://img1.126.net/channel5/024076/984328_160726.jpg","","",""],"show_num": 3,"show_time": "2.5","style": "10","sub_title": "","thirdplat": 0,"vdeg": "","vdet": "","vdog": "","vdot": "","video_url": ""}],"error": "","next_req": 600,"result": 0},{"ads": [{"action": "1","action_params": {"link_url": "http://e.eqxiu.com/s/boNdn3st"},"ad_loc": 53,"category": "FOCUS2","content": "","expired_time": 1469699850212,"flight_id": "1144","id": "49972","is_sens": 1,"location": "28","loop_time": 2,"main_title": "德国蓝卡项目牛在哪里","monitor": "mmaMonitor","monitorClickUrl": "http://afptrack.alimama.com/clk?bid=0a67342400005799d00221050348b69d&pid=mm_31464994_13336663_57440912&cid=96501&mid=73882&oid=13103&productType=1&qytInfoMTime=1469628038&e=rUCs624fxxSMpq0A4M5XO4J%2FT3%2FOrx01hl4MjjN7JIGcp4SB7QSrHZ653o5%2B6zxcigwQM%2FJQvb3RBoLew0bGWQo3zrIOQoOxQbJgY5ibTm9b2I%2Ba8%2Fb%2FFRz%2BArqzKd5usFd1BhHf9zqF91zOnvcNh0ofswPWh8DwvAgqIVpbLZY%3D&k=173","monitorShowUrl": "http://afptrack.alimama.com/imp?bid=0a67342400005799d00221050348b69d&pid=mm_31464994_13336663_57440912&cid=96501&mid=73882&oid=13103&productType=1&qytInfoMTime=1469628038","ratio": "100.0","res_url": ["http://afp.alicdn.com/afp-creative/creative/u31464994/f9c069ad72ccefe7e2525acf7be5e246.jpg","","",""],"show_num": 3,"show_time": "2.5","style": "3","sub_title": ""}],"error": "","next_req": 600,"result": 0,"rolls": 2},{"ads": [{"action": "1","action_params": {"link_url": "http://m.meme2c.com/channelRegister?tg=10217"},"ad_loc": 59,"category": "FOCUS2","content": "","expired_time": 1469699850215,"flight_id": "1146","id": "49973","is_sens": 1,"location": "29","loop_time": 2,"main_title": "工资开挂新get√ 轻松一点,月入2k多","monitor": "mmaMonitor","monitorClickUrl": "http://afptrack.alimama.com/clk?bid=0a671c9100015799d0024396035de62f&pid=mm_31464994_13336663_53106086&cid=90739&mid=69586&oid=12907&productType=1&qytInfoMTime=1469628038&e=ky4EstblSSy0LVip4%2BMlAeWKL6Od8OV1sH7Hbf8T%2FEHEL6%2FUOFHXcUh80o%2FKUDSEInuwQ5xR7l2fSwratLqWSBgKDqLfnkYyGAoOot%2BeRjJb2I%2Ba8%2Fb%2FFRz%2BArqzKd5uXjEnqNTqdByFpbqNFo598A%3D%3D&k=153","monitorShowUrl": "http://afptrack.alimama.com/imp?bid=0a671c9100015799d0024396035de62f&pid=mm_31464994_13336663_53106086&cid=90739&mid=69586&oid=12907&productType=1&qytInfoMTime=1469628038","ratio": "100.0","res_url": ["http://afp.alicdn.com/afp-creative/creative/u31464994/50631ee78b45e73605e3d8c3b42babbe.jpg","","",""],"show_num": 3,"show_time": "2.5","style": "3","sub_title": ""}],"error": "","next_req": 600,"result": 0,"rolls": 2},{"ads": [{"action": "1","action_params": {"link_url": "http://c.3g.163.com/nc/qa/activity/rio2016/index.html?__newsapp_webview=tbs"},"ad_loc": 9,"ad_type": 0,"category": "FOCUS2","content": "","expired_time": 1469807999000,"flight_id": "1402","id": "50445","is_dsp_backup": 0,"is_sens": 0,"location": "30","loop_time": 0,"main_title": "养成你的冠军,随手赢大奖!","monitor": "","monitorClickUrl": "","monitorReplaceDeviceId": 0,"monitorShowUrl": "","ratio": "33.3","res_url": ["http://img1.126.net/channel5/024089/984328_160725.jpg","","",""],"show_num": 3,"show_time": "2.5","style": "10","sub_title": "活动","thirdplat": 0,"vdeg": "","vdet": "","vdog": "","vdot": "","video_url": ""}],"error": "","next_req": 600,"result": 0,"rolls": 2}
]



http://www.ppmy.cn/news/339268.html

相关文章

2020中国汽车后市场白皮书

今日看点 ✦ 腾讯云&#xff1a;云开发日调用超7亿次&#xff0c;推出云开发低代码平台 ✦ 百度网盘&#xff1a;用户规模破7亿&#xff0c;数据存储总量超1000亿GB ✦ 蔚来汽车成立6周年&#xff1a;累计车主超6万人&#xff0c;开设门店186家 ✦ 凯撒集团完成京东所持途牛股份…

蔚来、吉利纷纷加码,新能源汽车换电模式按下加速键

随着碳中和目标的提出及相关政策的落地&#xff0c;以换代充的换电时代正向我们悄然走来。 在更为便捷、轻巧的电动车领域&#xff0c;易马达e换电、中国铁塔、易骑、宇谷科技、小哈换电等成为换电之路的先行者&#xff0c;后又有爱玛携手AI换电步入换电赛道、雅迪推出爱换换换…

macbook 连接不上蓝牙鼠标 m585 m590 解决方法

鼠标切换到1&#xff0c;然后一直按那圆按钮&#xff0c;按了得15秒以上&#xff0c;放开还是一直闪个不停&#xff0c;这时别再动鼠标了&#xff0c;直接电脑连接&#xff0c;然后就连上了。 已连接后右边可能还是一直转圈&#xff0c;这个不用理会。 亲测有效 原文&#xf…

蓝牙鼠标连不上

先重启一下电脑&#xff0c;蓝牙打开可被发现&#xff0c;然后连接时输入鼠标PIN码&#xff1a;0000。

蓝牙鼠标不能连接电脑可能的解决办法...

第一步&#xff0c;找到设备管理器并打开 第二步&#xff0c;鼠标右击卸载英特尔无线 第三步&#xff0c;鼠标右击扫描检测硬件改动

蓝牙鼠标连不上电脑

蓝牙鼠标连不上电脑 问题描述&#xff1a; 电脑蓝牙可以搜到蓝牙鼠标&#xff0c;但是每次点击连接时&#xff0c;都会出现请尝试重新连接设备 配置如下&#xff1a; 系统&#xff1a;WIN10 工作站版 鼠标&#xff1a;罗技 M720 最终解决办法&#xff1a; 运用驱动人生-外…

鼠标蓝牙配对使用没有反应

问题描述&#xff1a; 买了个蓝牙鼠标&#xff0c;发现电脑可以找到我的鼠标且配对&#xff0c;但鼠标无法使用&#xff1f; 解决方案&#xff1a; 换了个新电池&#xff0c;显示有灯&#xff0c;电池问题不存在了。 鼠标底部有三个按钮&#xff0c;蓝牙符号、on、off 我设…

计算机连接不上蓝牙鼠标,蓝牙鼠标连接不上电脑怎么办_蓝牙鼠标连接不上电脑的解决办法...

如果我们的电脑安装的是蓝牙鼠标的话&#xff0c;在使用过程中可能会出现的一些问题。近日就有用户反映说自己遇到了蓝牙鼠标连接不上电脑的问题&#xff0c;不知道怎么办&#xff0c;所以今天小编就来为大家分享关于蓝牙鼠标连接不上电脑的解决办法。 解决办法如下&#xff1a…