resultsPerPage = json.getInt("results_per_page");
warning = getString("warning", json, false);
completedIn = json.getDouble("completed_in");
page = json.getInt("page");
query = getString("query", json, true);
JSONArray array = json.getJSONArray("results");
tweets = new ArrayList<Tweet>(array.length());
for (int i = 0; i < array.length(); i++) {
JSONObject tweet = array.getJSONObject(i);
tweets.add(new Tweet(tweet, weiboSupport));
}
} catch (JSONException jsone) {
throw new WeiboException(jsone.getMessage() + ":" + json.toString(), jsone);
}