JSONArray list = json.getJSONArray("data");
final int size = list.length();
ResponseList<Photo> photos = new ResponseListImpl<Photo>(size, json);
for (int i = 0; i < size; i++) {
JSONObject photoJSONObject = list.getJSONObject(i);
Photo photo = new PhotoJSONImpl(photoJSONObject);
if (conf.isJSONStoreEnabled()) {
DataObjectFactoryUtil.registerJSONObject(photo, photoJSONObject);
}
photos.add(photo);
}