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 ; }
Prints the given json object to standard out accounting for pretty printing and suppressed output .