JSONArray list = json.getJSONArray("data");
final int size = list.length();
ResponseList<Achievement> achievements = new ResponseListImpl<Achievement>(size, json);
for (int i = 0; i < size; i++) {
JSONObject achievementJSONObject = list.getJSONObject(i);
Achievement achievement = new AchievementJSONImpl(achievementJSONObject);
if (conf.isJSONStoreEnabled()) {
DataObjectFactoryUtil.registerJSONObject(achievement, achievementJSONObject);
}
achievements.add(achievement);
}