JSONArray list = json.getJSONArray("data");
final int size = list.length();
ResponseList<Comment> comments = new ResponseListImpl<Comment>(size, json);
for (int i = 0; i < size; i++) {
JSONObject commentJSONObject = list.getJSONObject(i);
Comment comment = new CommentJSONImpl(commentJSONObject);
if (conf.isJSONStoreEnabled()) {
DataObjectFactoryUtil.registerJSONObject(comment, commentJSONObject);
}
comments.add(comment);
}