for (long i = offset; i < c.children.size(); i++) {
if (maxChildNodes-- <= 0) {
break;
}
String name = PathUtils.getName(c.children.get((int) i));
json.key(name).object().endObject();
}
json.key(":childNodeCount").value(c.children.size());
json.endObject();
String result = json.toString();
// if (filter != null && filter.contains(":hash")) {