public < T extends BullhornEntity > String convertEntityToJsonString ( T entity ) { String jsonString = "" ; try { jsonString = objectMapperStandard . writeValueAsString ( entity ) ; } catch ( JsonProcessingException e ) { log . error ( "Error deserializing entity of type" + entity . getClass ( ) + " to jsonString." , e ) ; } return jsonString ; }
Takes a BullhornEntity and converts it to a String in json format .