code: public <T> ExchangePublisher<T> createExchangeJsonPublisher(final String name)
      {
          Preconditions.checkState(connectionFactory != null, "connection factory was never injected!");
          return new ExchangePublisher<T>(connectionFactory, amqpConfig, name, jsonPublisherCallback);
      }
docs: Creates a new {@link ExchangePublisher}. The Publisher accepts arbitrary objects and uses the Jackson object mapper to convert them into
  JSON and sends them as a text message.