public static String stringify ( Object object , boolean prettyPrint ) throws IOException { if ( prettyPrint ) { return stringify ( object , DEFAULT_INDENT_STRING ) ; } else { return stringify ( object , null ) ; } }
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 .