title: How to Publish JSON Object on ActiveMQ
body: <p>I am trying to publish JSON Message(Object) on to the ActiveMQ queue/topic.
  currently i am converting JSON object into String then publishing it.
  But i don't want to convert it into String.I don't want to convert it into String instead of that i want to send as it is JSON Object as a Message.</p>
  
  <p>Below is my code </p>
  
  <pre><code>public void sendMessage(final JSONObject msg) {
          logger.info("Producer sends---&gt; " + msg);
          jmsTemplate.send(destination, new MessageCreator() {
              public Message createMessage(Session session) throws JMSException {
                  String s = msg.toString();
                  return session.createTextMessage(s);
                  // createTextMessage(msg);
              }
          });
      }
  </code></pre>