Hi,
How do I do something like:
public void transform(String fileName) throws IOException {
String content = new
String(Files.readAllBytes(Paths.get(fileName)), StandardCharsets.UTF_8);
org.json.JSONObject json = new org.json.JSONObject(content);
log.info(org.json.XML.toString(json));
}
but using BaseX as below?
private void baseXparseJsonFile(String fileName) throws IOException {
org.basex.build.json.JsonParser jsonParser = new
org.basex.build.json.JsonParser(new IOFile(fileName), new MainOptions());
//where is the xml?
}
Unclear on how to use the different parsers (really, just need this one
parser). See also:
https://stackoverflow.com/q/60022419/262852
thanks,
Thufir