public static <T> String createJSON(T values) {
		final OutputStream out = new ByteArrayOutputStream();
		final ObjectMapper mapper = new ObjectMapper();

		String output = "";
		try {
			mapper.writeValue(out, values);

			final byte[] data = ((ByteArrayOutputStream) out).toByteArray();
			output = new String(data);
			_logger.debug("createJson: " + output);
		} catch (JsonGenerationException e) {
			_logger.error(e.getMessage());
		} catch (JsonMappingException e) {
			_logger.error(e.getMessage());
		} catch (IOException e) {
			_logger.error(e.getMessage());
		}

		return output;
	}