code: public String toJson(boolean pretty, String ... attrs) {
          hydrate();
          StringBuilder sb = new StringBuilder();
          sb.append('[');
          if (pretty) sb.append('\n');
  
          for (int i = 0; i < delegate.size(); i++) {
              if (i > 0) {
                  sb.append(',');
                  if (pretty) { sb.append('\n'); }
              }
              delegate.get(i).toJsonP(sb, pretty, (pretty ? "  " : ""), attrs);
          }
          if (pretty) { sb.append('\n'); }
          sb.append(']');
          return sb.toString();
      }
docs: Generates JSON from content of this list
  
  @param pretty true if you want pretty format, false if not
  @param attrs attributes to include, not providing any will include all.
  @return generated JSON