publicstatic String getJson(String str) throws Exception{
HttpGet get=new HttpGet(str);
HttpClient client=newDefaultHttpClient();
HttpResponseresponse=client.execute(get);
intcode=response.getStatusLine().getStatusCode();
if(HttpStatus.SC_OK==code){
String s=EntityUtils.toString(response.getEntity(),"utf-8");
return s;
}
return "";
}