class JsonFormConverter {

	public String convert(Object targetObject) {
		
		try {
			
			ObjectMapper mapper = new ObjectMapper();	
			String json = mapper.writeValueAsString(targetObject);
			return json;
			
		} catch (IOException e) {
			logger.error("Exception while make json form string.", e);
			throw new IllegalStateException("Exception while make json form string.", e);
		}
	}

}