String character = "根据url获取一个字符串";
System.out.println("character"+character);
int indexOf = character.indexOf("{");//记录{开始的下标
int lastIndexOf = character.lastIndexOf("}");//记录}结束的下标
String find1 = character.substring(indexOf, lastIndexOf+1);//截取{开始}结束的字符串内容
if (find1.startsWith("{"))
{
JSONObject fromObject = JSONObject.fromObject(find1);
jsonArray = fromObject.getJSONArray("results");
}