Package org.basex.io.parse.json
Class JsonConverter
java.lang.Object
org.basex.io.parse.json.JsonConverter
- Direct Known Subclasses:
JsonAttsConverter,JsonBasicConverter,JsonDirectConverter,JsonXQueryConverter
Interface for converters from JSON to XQuery values.
- Author:
- BaseX Team 2005-21, BSD License, Leo Woerteler
-
Method Summary
Modifier and TypeMethodDescriptionfinal ItemConverts the specified input to an XQuery value.final ItemConverts the specified input to an XQuery value.final JsonConverterfallback(JsonFallback func) Assigns a fallback function for invalid characters.static JsonConverterget(JsonParserOptions jopts) Returns a JSON converter for the given configuration.
-
Method Details
-
fallback
Assigns a fallback function for invalid characters.- Parameters:
func- fallback function- Returns:
- self reference
-
convert
Converts the specified input to an XQuery value.- Parameters:
input- input- Returns:
- result
- Throws:
IOException- I/O exception
-
convert
Converts the specified input to an XQuery value.- Parameters:
input- inputpath- input path (can be empty string}- Returns:
- result
- Throws:
QueryIOException- query I/O exception
-
get
Returns a JSON converter for the given configuration.- Parameters:
jopts- options- Returns:
- JSON converter
- Throws:
QueryIOException- query I/O exception
-