code: public void writeJSON(JSONValue jc, JSONWriter jb, boolean writeClass)
              throws IOException {
          jb.arrayBegin();
          for (Object item : mArray) {
              if (item == null)
                  jb.valueNull();
              else
                  jc.writeValue(item, jb, writeClass);
          }
          jb.arrayEnd();
      }
docs: write json.
  
  @param jc json converter
  @param jb json builder.