 <p>Mads, that did just the trick! Thank you so much, I knew there was a very simple solution that I just wasn't seeing. Here is the magical line that converts an XML string to JSON: </p> <pre><code>String ret = XML.toJSONObject(aStringOfXml).toString(); </code></pre>