blob: 0e28672145f313b090e938fbe447e3ba7ebadbaa (
plain)
1
2
3
4
5
6
7
8
9
10
|
java.io.File file = new java.io.File("/home/user/Source/starck-xsl/spec.json");
String jsonStr = org.apache.commons.io.FileUtils.readFileToString(file);
System.out.println(jsonStr);
org.json.JSONObject json = new org.json.JSONObject(jsonStr);
String xml = org.json.XML.toString(json);
System.out.println(xml);
|