code: public static String stringify(Object object, boolean prettyPrint) throws IOException {
          if (prettyPrint) {
              return stringify(object, DEFAULT_INDENT_STRING);
          } else {
              return stringify(object, null);
          }
      }
docs: Converts an object to a JSON formatted string.
  If pretty-printing is enabled, includes spaces, tabs and new-lines to make the format more readable.
  The default indentation string is a tab character.
  
  @param object an object to convert to a JSON formatted string
  @param prettyPrint enables or disables pretty-printing
  @return the JSON formatted string
  @throws IOException if an I/O error has occurred