code: public void serialize(OutputStream os, boolean verbose) throws IOException {
          Writer writer = null;
          try
          {
              writer = new BufferedWriter(new OutputStreamWriter(os, "UTF-8"));
          }
          catch (UnsupportedEncodingException uex)
          {
              IOException iox = new IOException(uex.toString());
              iox.initCause(uex);
              throw iox;
          }
          serialize(writer, verbose);
      }
docs: Convert this object into a stream of JSON text.  Same as calling serialize(writer,false);
  Note that encoding is always written as UTF-8, as per JSON spec.
  @param os The output stream to serialize data to.
  @param verbose Whether or not to write the JSON text in a verbose format.
  
  @throws IOException Thrown on IO errors during serialization.