How do I invoke the following method JsonParser
:
/**
* Converts a JSON document to XML.
* @param io input
* @param options parser options
* @return parser
* @throws IOException I/O exception
*/
private static IOContent toXML(final IO io, final JsonParserOptions options) throws IOException {
final JsonConverter conv = JsonConverter.get(options);
final IOContent xml = new IOContent(conv.convert(io).serialize().finish());
xml.name(io.name());
return xml;
}
yet I'm certainly not seeing this method from the IDE:
The method is in the JavaDocs:
Method Detail
toXML
public static IOContent toXML(IO io,
JsonParserOptions options)
throws java.io.IOException
Converts a JSON document to XML.
Parameters:
io - input
options - parser options
Returns:
parser
Throws:
java.io.IOException - I/O exception
The build file is using:
compile group: 'org.basex', name: 'basex', version: '9.2.4'
which is the most recent version I see on the repository:
maven { url "https://mvnrepository.com/" }
I went so far as to assemble the project and extracted the .class
file from the JAR
from the resulting BaseX
but didn't go futher to find if this method is there or not.
Perhaps I'm just not invoking the method properly?