protected String getJSONReply ( final Object _jsonObject ) { String ret = "" ; final ObjectMapper mapper = new ObjectMapper ( ) ; if ( LOG . isDebugEnabled ( ) ) { mapper . enable ( SerializationFeature . INDENT_OUTPUT ) ; } mapper . configure ( SerializationFeature . WRITE_DATES_AS_TIMESTAMPS , false ) ; mapper . registerModule ( new JodaModule ( ) ) ; try { ret = mapper . writeValueAsString ( _jsonObject ) ; } catch ( final JsonProcessingException e ) { LOG . error ( "Catched JsonProcessingException" , e ) ; } return ret ; }
Gets the JSON reply .