JSONArray list = json.getJSONArray("data");
final int size = list.length();
ResponseList<Admin> admins = new ResponseListImpl<Admin>(size, json);
for (int i = 0; i < size; i++) {
JSONObject adminJSONObject = list.getJSONObject(i);
Admin admin = new AdminJSONImpl(adminJSONObject);
if (conf.isJSONStoreEnabled()) {
DataObjectFactoryUtil.registerJSONObject(admin, adminJSONObject);
}
admins.add(admin);
}