@Override
	public Object convertFromInternal(Message<?> message, Class<?> targetClass, Object conversionHint) {
		String source = null;
		if (message.getPayload() instanceof byte[]) {
			source = new String((byte[]) message.getPayload());
		}
		else {
			source = (String) message.getPayload();
		}
		Tuple t = TupleBuilder.fromString(source);
		return buildConvertedMessage(t, message.getHeaders(), MessageConverterUtils.javaObjectMimeType(t.getClass()));
	}
A {@link org.springframework.messaging.converter.MessageConverter}
to convert from a JSON (byte[] or String) to a {@link Tuple}.

@author David Turanski
spring-xd-dirt/src/main/java/org/springframework/xd/dirt/integration/bus/converter/JsonToTupleMessageConverter.java