开发者社区> 问答> 正文

如何最简单的用java解析这个json文件


小弟新人,不知道怎么解析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" : "时间"
 } ]
 }

展开
收起
杨冬芳 2016-07-06 19:33:11 3220 0
1 条回答
写回答
取消 提交回答
问答排行榜
最热
最新

相关电子书

更多
神龙云服务器产品及技术深度解析 立即下载
弹性创造价值:基于ECS的最佳性价比实践解析 立即下载
又快又稳:阿里云下一代虚拟交换机解析 立即下载

相关镜像