* @param json
* the json string
* @return the string as xml.
*/
public static String fromJSONtoXML(String json) {
HierarchicalStreamDriver driver = new JettisonMappedXmlDriver();
StringReader reader = new StringReader(json);
HierarchicalStreamReader hsr = driver.createReader(reader);
StringWriter writer = new StringWriter();
try {
new HierarchicalStreamCopier().copy(hsr, new PrettyPrintWriter(
writer));
return writer.toString();