|
5精币
请问怎么用json取出这个代码里访问网站返回文本里每个时间段里的物流信息跟对应的时间~~并插入到超级列表框对应的列~
{"message":"ok","nu":"72659501698","ischeck":"0","condition":"00","com":"jd","status":"200","state":"0","data":[{"time":"2018-03-02 08:45:55","ftime":"2018-03-02 08:45:55","context":"货物已分配,等待配送","location":""},{"time":"2018-03-02 01:13:34","ftime":"2018-03-02 01:13:34","context":"货物已完成分拣,离开【成都青白江分拣中心】","location":""},{"time":"2018-03-02 00:58:13","ftime":"2018-03-02 00:58:13","context":"货物已到达【成都青白江分拣中心】","location":""},{"time":"2018-03-01 23:24:15","ftime":"2018-03-01 23:24:15","context":"货物已完成分拣,离开【德阳广汉新丰接货仓】","location":""},{"time":"2018-03-01 23:23:45","ftime":"2018-03-01 23:23:45","context":"货物已交付京东物流","location":""}]}”
* “72539259529”
* “{"message":"ok","nu":"72539259529","ischeck":"1","condition":"F00","com":"jd","status":"200","state":"3","data":[{"time":"2018-02-26 14:40:02","ftime":"2018-02-26 14:40:02","context":"货物已完成配送,感谢您选择京东配送","location":""},{"time":"2018-02-26 10:18:42","ftime":"2018-02-26 10:18:42","context":"配送员开始配送,请您准备收货,配送员,姜力贵,手机号,15884211477或18982904211","location":""},{"time":"2018-02-26 10:16:04","ftime":"2018-02-26 10:16:04","context":"配送员开始配送,请您准备收货,配送员,姜力贵,手机号,15884211477或18982904211","location":""},{"time":"2018-02-26 09:10:58","ftime":"2018-02-26 09:10:58","context":"货物已分配,等待配送","location":""},{"time":"2018-02-25 18:24:37","ftime":"2018-02-25 18:24:37","context":"货物已完成分拣,离开【成都郫县分拣中心】","location":""},{"time":"2018-02-25 16:25:47","ftime":"2018-02-25 16:25:47","context":"货物已完成分拣,离开【成都郫县安德接货仓】","location":""},{"time":"2018-02-25 16:25:17","ftime":"2018-02-25 16:25:17","context":"货物已交付京东物流","location":""}]}”
这是2种物流情况~~一种是到货的一种是还没到货的~~!
请大神指点~~最好给我个源码
|
最佳答案
查看完整内容
我改的你看看 可以的话 请采纳 上一个 帖子 也是我先说的 这是JSON格式文本 也记得 采纳下啊
差点被你写的代码 带到 沟里去了
|