code: @Override
      public void appendJSON(Appendable a) throws IOException {
          a.append('{');
          int n = list.size();
          if (n > 0) {
              int i = 0;
              for (;;) {
                  Entry<String, V> entry = list.get(i++);
                  a.append('"');
                  Strings.appendEscaped(a, entry.getKey(), JSON.charMapper);
                  a.append('"').append(':');
                  JSON.appendJSON(a, entry.getValue());
                  if (i >= n)
                      break;
                  a.append(',');
              }
          }
          a.append('}');
      }
docs: Append the external representation for this JSON object to a given {@link Appendable}.
  
  @param   a   the {@link Appendable}
  @throws  IOException     if thrown by the {@link Appendable}
  @see     JSONValue#appendJSON(Appendable)