jsonp
Connection conn = Jsoup.connect("http://ip.taobao.com/service/getIpInfo.php?ip=" + ip); Document doc = conn.get(); System.out.println(JSON.parse(doc.text())); JSONObject.parseObject(doc.text()); String data = JSONObject.parseObject(doc.text()).get("data").toString(); String city = (String) JSONObject.parseObject(data).get("region").toString(); String ips = (String) JSONObject.parseObject(data).get("isp");
http://blog.csdn.net/column/details/jsoup.html
原文:http://www.cnblogs.com/rocky-AGE-24/p/7376623.html