protected String serializeBody ( Request request ) { try { return objectMapper . writeValueAsString ( request . getRequestBody ( ) ) ; } catch ( JsonProcessingException e ) { throw new ClientMarshallingException ( "Error writing request." , e ) ; } }
Serialize the request body