}
ResponseList<Category> categories =
new ResponseListImpl<Category>(array.length(), res);
for (int i = 0; i < array.length(); i++) {
JSONObject json = array.getJSONObject(i);
Category category = new CategoryJSONImpl(json);
categories.add(category);
if (conf.isJSONStoreEnabled()) {
DataObjectFactoryUtil.registerJSONObject(category, json);
}
}