小弟新人,不知道怎么解析dhl网站传回来的json文件,有代码最好,谢谢啦
{
"results" : [ {
"id" : "6582515623",
"label" : "运单",
"type" : "airwaybill",
"duplicate" : false,
"delivery" : {
"code" : "101",
"status" : "delivered"
},
"origin" : {
"value" : "SHANGHAI - SHANGHAI - CHINA, PEOPLES REPUBLIC",
"label" : "发件地服务区域",
"url" : "http://www.cn.dhl.com/en/country_profile.html"
},
"destination" : {
"value" : "KUALA LUMPUR - 40470 SHAH ALAM SELANGOR DARUL EHSA - MALAYSIA",
"label" : "目的地服务区域",
"url" : "http://www.dhl.com.my/en/country_profile.html"
},
"description" : "已签收: MS SANDRA 星期三, 一月 06, 2016 于 13:54",
"hasDuplicateShipment" : false,
"signature" : {
"link" : {
"url" : "https://webpod.dhl.com/webPOD/DHLePODRequest?hwb=H%2B8q%2Bsy%2BDgBfBxY4TPyQHQ%3D%3D&pudate=yHkb%2Fogas7GpGJE7%2ByaM0A%3D%3D&appuid=9u1%2BsSO1fsdK7F6MTNnRjg%3D%3D&language=zh&country=CN",
"label" : "获取电子签收凭证"
},
"type" : "epod",
"description" : "星期三, 一月 06, 2016 于 13:54",
"signatory" : "MS SANDRA",
"label" : "已签收",
"help" : "help"
},
"pieces" : {
"value" : 1,
"label" : "件",
"showSummary" : true,
"pIds" : [ "JD014600001868677611" ]
},
"checkpoints" : [ {
"counter" : 4,
"description" : "快件已完成清关手续并从海关放行 EAST CHINA AREA - CHINA, PEOPLES REPUBLIC",
"time" : "21:55",
"date" : "星期一, 一月 04, 2016 ",
"location" : "EAST CHINA AREA - CHINA, PEOPLES REPUBLIC"
}, {
"counter" : 3,
"description" : "离开转运地 SHANGHAI - CHINA, PEOPLES REPUBLIC",
"time" : "21:47",
"date" : "星期一, 一月 04, 2016 ",
"location" : "SHANGHAI - CHINA, PEOPLES REPUBLIC",
"totalPieces" : 1,
"pIds" : [ "JD014600001868677611" ]
}, {
"counter" : 2,
"description" : "正在(已经)安排下一站的转运 SHANGHAI - CHINA, PEOPLES REPUBLIC",
"time" : "21:42",
"date" : "星期一, 一月 04, 2016 ",
"location" : "SHANGHAI - CHINA, PEOPLES REPUBLIC",
"totalPieces" : 1,
"pIds" : [ "JD014600001868677611" ]
}, {
"counter" : 1,
"description" : "快件已从发件人处提取",
"time" : "20:20",
"date" : "星期一, 一月 04, 2016 ",
"location" : "SHANGHAI - CHINA, PEOPLES REPUBLIC"
} ],
"checkpointLocationLabel" : "位置",
"checkpointTimeLabel" : "时间"
} ]
}
版权声明:本文内容由阿里云实名注册用户自发贡献,版权归原作者所有,阿里云开发者社区不拥有其著作权,亦不承担相应法律责任。具体规则请查看《阿里云开发者社区用户服务协议》和《阿里云开发者社区知识产权保护指引》。如果您发现本社区中有涉嫌抄袭的内容,填写侵权投诉表单进行举报,一经查实,本社区将立刻删除涉嫌侵权内容。