public final class JsonParser extends XMLParser
The parser provides some options, which can be specified via the
MainOptions.JSONPARSER
option.
builder
Constructor and Description |
---|
JsonParser(IO source,
MainOptions opts)
Constructor.
|
JsonParser(IO source,
MainOptions opts,
JsonParserOptions jopts)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
static IOContent |
toXML(IO io,
JsonParserOptions options)
Converts a JSON document to XML.
|
parse
emptyParser, info, singleParser, target, xmlParser
abort, checkStop, databases, detail, listen, proc, progress, registered, registered, startTimeout, stop, stopTimeout, tit, title
public JsonParser(IO source, MainOptions opts) throws IOException
source
- document sourceopts
- database optionsIOException
- I/O exceptionpublic JsonParser(IO source, MainOptions opts, JsonParserOptions jopts) throws IOException
source
- document sourceopts
- database optionsjopts
- parser optionsIOException
- I/O exceptionpublic static IOContent toXML(IO io, JsonParserOptions options) throws IOException
io
- inputoptions
- parser optionsIOException
- I/O exceptionCopyright © 2005–2015 BaseX Team. All rights reserved.