title: convert json which escaped quotes to xml
body: <p>i have the following json-string:</p>
  
  <pre><code>{result:{"id":"1234","pages": [{"Id":50,"data":"{\"name\":\"name1\",\"description\":\"description1\"}"}],"errors":[] }}
  </code></pre>
  
  <p>which i want to convert to xml. I have tried several methods to convert, one of which is decribed here: <a href="https://stackoverflow.com/questions/559296/java-implementation-of-json-to-xml-conversion">Java implementation of JSON to XML conversion</a> :</p>
  
  <pre><code>JSONObject o = new JSONObject(jsonString);
  String xml = org.json.XML.toString(o);
  </code></pre>
  
  <p>the result of this is:</p>
  
  <pre><code>&lt;result&gt;&lt;id&gt;1234&lt;/id&gt;&lt;pages&gt;&lt;data&gt;{&amp;quot;name&amp;quot;:&amp;quot;name1&amp;quot;,&amp;quot;description&amp;quot;:&amp;quot;description1&amp;quot;}&lt;/data&gt;&lt;Id&gt;50&lt;/Id&gt;&lt;/pages&gt;&lt;/result&gt;
  </code></pre>
  
  <p>or formatted:</p>
  
  <pre><code>&lt;result&gt;
    &lt;id&gt;1234&lt;/id&gt;
    &lt;pages&gt;
      &lt;Id&gt;50&lt;/Id&gt;
      &lt;data&gt;{&amp;quot;name&amp;quot;:&amp;quot;name1&amp;quot;,&amp;quot;description&amp;quot;:&amp;quot;description1&amp;quot;}&lt;/data&gt;
    &lt;/pages&gt;
  &lt;/result&gt;
  </code></pre>
  
  <p>obviously the data in 'data' is converted to a string. Actually what I want is a structure like this, where the content of the 'data' block is converted to tags:</p>
  
  <pre><code>&lt;result&gt;
    &lt;id&gt;1234&lt;/id&gt;
    &lt;pages&gt;
      &lt;Id&gt;50&lt;/Id&gt;
      &lt;data&gt;
        &lt;name&gt;name1&lt;/name&gt;
        &lt;description&gt;description1&lt;/description&gt;
      &lt;/data&gt;
    &lt;/pages&gt;
  &lt;/result&gt;
  </code></pre>
  
  <p>i know this was the result if the json string would be </p>
  
  <pre><code>{result:{"id":"1234","pages": [{"Id":50,"data":{"name":"name1","description":"description1"}}],"errors":[]}}
  </code></pre>
  
  <p>but unfortunatelly i can not change that.</p>
  
  <p>So does anyone know about a method to convert</p>
  
  <pre><code>{result:{"id":"1234","pages": [{"Id":50,"data":"{\"name\":\"name1\",\"description\":\"description1\"}"}],"errors":[] }}
  </code></pre>
  
  <p>to </p>
  
  <pre><code>&lt;result&gt;
    &lt;id&gt;1234&lt;/id&gt;
    &lt;pages&gt;
      &lt;Id&gt;50&lt;/Id&gt;
      &lt;data&gt;
        &lt;name&gt;name1&lt;/name&gt;
        &lt;description&gt;description1&lt;/description&gt;
      &lt;/data&gt;
    &lt;/pages&gt;
  &lt;/result&gt;
  </code></pre>
  
  <p>in java?</p>