title: How to send to RabbitMQ with escape character
body: <p>i am pushing to rabbitMq like this </p>
  
  <pre><code>@PostMapping(value = {"/push"},produces = APPLICATION_JSON_VALUE)
       public ResponseEntity&lt;String&gt; push(
              @RequestBody String payload,
              HttpServletResponse httpServletResponse,HttpServletRequest httpServletRequest) {
          rabbitMQPublisherService.send(payload);
          return new ResponseEntity&lt;&gt;(HttpStatus.OK);
      }
  
  
  
  @Service
  public class RabbitMQPublisherService {
  
      @Autowired
      private RabbitTemplate rabbitTemplate;
  
      @Value("${rabbitmq.queue}")
      private String queue;
  
      public void send(String message) {
  
          rabbitTemplate.convertAndSend(queue,new String(message.getBytes()));
      }
  }
  
  
  @Configuration
  public class RabbitMQConfiguration {
  
      @Value("${rabbitmq.queue}")
      private String queueName;
  
      @Value("${rabbitmq.exchange}")
      private String exchange;
  
      @Value("${rabbitmq.routingkey}")
      private String routingKey;
  
      @Bean
      public Queue queue() {
          return new Queue(queueName, false);
      }
  
      @Bean
      public DirectExchange exchange() {
          return new DirectExchange(exchange);
      }
  
      @Bean
      public Binding binding() {
          return BindingBuilder.bind(queue()).to(exchange()).with(routingKey);
      }
  
      @Bean
      public MessageConverter jsonMessageConverter() {
          return new Jackson2JsonMessageConverter();
      }
  
      @Bean
      public AmqpTemplate rabbitTemplate(ConnectionFactory connectionFactory) {
          final RabbitTemplate rabbitTemplate = new RabbitTemplate(connectionFactory);
          rabbitTemplate.setMessageConverter(jsonMessageConverter());
          return rabbitTemplate;
      }
  }
  </code></pre>
  
  <p>But everytime, i push a jason it pushes in the queue with escape characters , i dont want excape cahracters . Suggest me in this regard</p>
  
  <p>Output </p>
  
  <blockquote>
    <p>"{\n\"check\": \"1\",\n\"type\": \"1212\"\n}"</p>
  </blockquote>
  
  <p>Desired OutPut </p>
  
  <blockquote>
    <p>"{"check": "1","type": "1212"}"</p>
  </blockquote>