code: public String serialize(boolean verbose) throws IOException {
          Serializer serializer;
          StringWriter writer = new StringWriter();
  
          if (verbose)
          {
              serializer = new SerializerVerbose(writer);
          }
          else
          {
              serializer = new Serializer(writer);
          }
          serializer.writeObject(this).flush();
  
          return writer.toString();
      }
docs: Convert this object into a String of JSON text, specifying verbosity.
  @param verbose Whether or not to serialize in compressed for formatted Strings.
  
  @throws IOException Thrown on IO errors during serialization.