JSONArray list = json.getJSONArray("data");
final int size = list.length();
ResponseList<Event> events = new ResponseListImpl<Event>(size, json);
for (int i = 0; i < size; i++) {
JSONObject eventJSONObject = list.getJSONObject(i);
Event event = new EventJSONImpl(eventJSONObject);
if (conf.isJSONStoreEnabled()) {
DataObjectFactoryUtil.registerJSONObject(event, eventJSONObject);
}
events.add(event);
}