for (Department department : departments) {
Map data = new HashMap();
data.put("id", department.getId());
data.put("name", department.getName());
data.put("description", department.getDescription());
jsonObject.accumulate("data", data);
}
}
jsonObject.accumulate("total", getDirectoryManager().getTotalDepartmentsByParentId(name, deptId));
jsonObject.accumulate("start", start);