import org.json.*;
String responseData = prev.getResponseDataAsString();
JSONObject resObj = new JSONObject(responseData);
JSONArray jsonArray = new JSONArray(resObj.get("datas").toString());
for(int i=0;i<jsonArray.length();i++){
	  if(jsonArray.getJSONObject(i).get("images").contains("https://xxxxxx.tang.cn") && 
	  (jsonArray.getJSONObject(i).get("createUserExpert")==1) ){
		    Failure = false;
		    break;
	  }else{
    Failure = true;
    FailureMessage="搜索结果中包括非专家或者不是图片的数据";		
	  }
		
}
原文:https://www.cnblogs.com/charlie-learnbar/p/13628152.html