code: public static boolean printJsonObject( Object output, Boolean uglyPrint, boolean suppressOutput ) {
          try {
              if ( uglyPrint ) {
                  printToStandardOut( JsonUtils.toJsonString( output ), suppressOutput );
              } else {
                  printToStandardOut( JsonUtils.toPrettyJsonString( output ), suppressOutput );
              }
          } catch ( Exception e ) {
              printToStandardOut( "An error occured while attempting to print the output.", suppressOutput );
              return false;
          }
          return true;
      }
docs: Prints the given json object to standard out, accounting for pretty printing and suppressed output.
  
  @param output The object to print. This method will fail if this object is not well formed JSON.
  @param uglyPrint ignore pretty print
  @param suppressOutput suppress output to standard out
  @return true if printing operation was successful