JSONArray list = json.getJSONArray("data");
final int size = list.length();
ResponseList<Like> likes = new ResponseListImpl<Like>(size, json);
for (int i = 0; i < size; i++) {
JSONObject likeJSONObject = list.getJSONObject(i);
Like like = new LikeJSONImpl(likeJSONObject);
if (conf.isJSONStoreEnabled()) {
DataObjectFactoryUtil.registerJSONObject(like, likeJSONObject);
}
likes.add(like);
}