java解析json
//json数据:{"data":{"ack":"Y","documentCode":"TEST-170920-2013","errors":[],"trackNumber":"00340434185102649156"},"errorCode":"0","errorMsg":null} // net.sf.json.JSONObject jsonObj = net.sf.json.JSONObject.fromObject(strResult); System.out.println(jsonObj.getJSONObject("data").get("trackNumber"));