title: How to Send JSON object to ActiveMQ?
body: <p>I am creating JSON object as below</p>
  
  <pre><code>org.json.JSONObject json = new JSONObject(jsonString);
  </code></pre>
  
  <p>I want to send this object to queue on ActiveMQ.
  I was trying to use following API </p>
  
  <pre><code>objectMessage.setObject(json);
  </code></pre>
  
  <p>But as json object is not serializable, compiler is throwing error.</p>
  
  <p>If I convert json object to String then it is working.</p>
  
  <p>Is there any way I can directly transfer json object (without converting to String) to queue?</p>