예제 #1
0
 static List<JsonMap> getAllChildren(List<JsonMap> list) {
   List<JsonMap> res = new ArrayList<JsonMap>();
   for (JsonMap jsonMap : list) {
     res.add(jsonMap);
     res.addAll(getAllChildren(jsonMap.getValues()));
   }
   return res;
 }