接口返回数据和数组
////////解析返回数据,需要get的数据是数组
String retString = sb.toString();
JSONArray authorJsonArray = JSONArray.fromObject(retString);
for(int i = 0; i < authorJsonArray.size();i++)
{
JSONObject retObject0 = authorJsonArray.getJSONObject(i);
System.out.println(retObject0.getString("desc"));
}
reader.close();
////////解析返回数据,需要get的数
String retString = sb.toString();
JSONObject retObject = JSONObject.fromObject(retString);
System.out.println(retObject.getString("balance"));
reader.close();