JSONArray list = json.getJSONArray("data");
final int size = list.length();
ResponseList<Group> groups = new ResponseListImpl<Group>(size, json);
for (int i = 0; i < size; i++) {
JSONObject groupJSONObject = list.getJSONObject(i);
Group group = new GroupJSONImpl(groupJSONObject);
if (conf.isJSONStoreEnabled()) {
DataObjectFactoryUtil.registerJSONObject(group, groupJSONObject);
}
groups.add(group);
}