JSONArray list = json.getJSONArray("data");
final int size = list.length();
ResponseList<Notification> notifications = new ResponseListImpl<Notification>(size, json);
for (int i = 0; i < size; i++) {
JSONObject notificationJSONObject = list.getJSONObject(i);
Notification notification = new NotificationJSONImpl(notificationJSONObject);
if (conf.isJSONStoreEnabled()) {
DataObjectFactoryUtil.registerJSONObject(notification, notificationJSONObject);
}
notifications.add(notification);
}