title: storing xml inside json object
body: <p>I need to store complete xml document as part of json object.
  when i receive the request and try to create json object from json string like below -</p>
  
  <pre><code>{"content":{
  "name" : "xyz",
  "details":"&lt;?xml version=\"1.0\" encoding=\"UTF-8\"?&gt;
   &lt;ns0:Report xmlns:ns0=\"http://www.khisko.com/triTypes\"&gt;
    &lt;StackTrace&gt;Job-8004 Error in [xxxxxxxxxx]
        Output data invalid&amp;#xD;
    at com.xyz.tst.a(Unknown Source)&amp;#xD;
        caused by: java.lang.NullPointerException&amp;#xD;
     &lt;/StackTrace&gt;
     &lt;Msg&gt;Output data invalid&lt;/Msg&gt;
    &lt;/ns0:Report&gt;"
   }}
  </code></pre>
  
  <p>I am getting Unterminated string error at first char of details.
  how can i handle it.</p>
  
  <p>i am using org.json.JSONObject constructor which takes java string as parameter and passing above json as java string.</p>
  
  <p>Thanks </p>