code: public String serialize(Object object) {
  		if (LOGGER.isDebugEnabled()) {
  			LOGGER.debug("Serializing object to Json");
  		}
  		XStream xstream = new XStream(new JettisonMappedXmlDriver());
  		String json = xstream.toXML(object);
  		if (LOGGER.isDebugEnabled()) {
  			LOGGER.debug("Object serialized well");
  		}
  		return json;
  	}
docs: Serializes an object to Json.