code: public static String toJson(Object obj) {
  		ObjectMapper mapper = new ObjectMapper();
  		try {
  			return mapper.writeValueAsString(obj);
  		} catch (IOException e) {
  			JK.throww(e);
  			return null;
  		}
  	}
docs: To json.
  
  @param obj the obj
  @return the string