JSONArray list = json.getJSONArray("data");
final int size = list.length();
ResponseList<Activity> activities = new ResponseListImpl<Activity>(size, json);
for (int i = 0; i < size; i++) {
JSONObject activityJSONObject = list.getJSONObject(i);
Activity activity = new ActivityJSONImpl(activityJSONObject);
if (conf.isJSONStoreEnabled()) {
DataObjectFactoryUtil.registerJSONObject(activity, activityJSONObject);
}
activities.add(activity);
}