您可以将字符串转换为json:
try { response = httpclient.execute(httpget); HttpEntity entity = response.getEntity(); if (entity != null) {String retSrc = EntityUtils.toString(entity); // parsing JSonJSONObject result = new JSonObject(retSrc); //Convert String to JSON Object JSonArray tokenList = result.getJSonArray("names"); JSonObject oj = tokenList.getJSonObject(0); String token = oj.getString("name"); }} catch (Exception e) { }


