Converting JSON to XML using XSLT
<p>Following is my requirement:</p>

<p>Application A is creating a JSON based on its Java Beans and sending to my Application.
I have to take this JSON and convert it into XML (XSD for this is completely different than my JSON structure) and send to Application B.</p>

<p><strong>Solution 1)</strong> I am currently converting this json to xml using json.org library.Then using Apache-xalan and XSL stylesheet, I am converting this to xml format as required by App B.</p>

<p><strong>Solution 2)</strong> Converting this json to Java Bean (JB1).Then converting this JB1 to another Java Bean (JB2) as per the xml structure required by Application B.Then convert JB2 to XML for app B.</p>

<p><strong>Solution 3)</strong> Using Apache Xalan and Xerces to parse through the input json and make the XML in Java itself without using XSL.</p>

<p>Which is better approach (in simplicity of code, throughput )? As JSON becomes more complex, is it easy to use solution 1 ? Please suggest if there is better approach other than these 3 ?</p>