public abstract class JsonConverter extends Object
Modifier and Type | Method and Description |
---|---|
Item |
convert(IO input)
Converts the specified input to an XQuery value.
|
Item |
convert(String input,
String path)
Converts the specified input to an XQuery value.
|
JsonConverter |
fallback(JsonFallback func)
Assigns a fallback function for invalid characters.
|
static JsonConverter |
get(JsonParserOptions jopts)
Returns a JSON converter for the given configuration.
|
public final JsonConverter fallback(JsonFallback func)
func
- fallback functionpublic final Item convert(IO input) throws IOException
input
- inputIOException
- I/O exceptionpublic final Item convert(String input, String path) throws QueryIOException
input
- inputpath
- input path (can be empty string}QueryIOException
- query I/O exceptionpublic static JsonConverter get(JsonParserOptions jopts) throws QueryIOException
jopts
- optionsQueryIOException
- query I/O exceptionCopyright © 2005–2023 BaseX Team. All rights reserved.