public class ParseJsonFn extends JsonToXMLFn
Modifier and Type | Field and Description |
---|---|
static OptionsParameter |
OPTION_DETAILS |
Constructor and Description |
---|
ParseJsonFn() |
Modifier and Type | Method and Description |
---|---|
protected Item |
eval(java.lang.String input,
MapItem options,
XPathContext context)
Parse the JSON string according to supplied options
|
static Item |
parse(java.lang.String input,
java.util.Map<java.lang.String,Sequence> options,
XPathContext context)
Parse the JSON string according to supplied options
|
call
dependsOnContextItem, dynamicCall, equals, export, exportAdditionalArguments, exportAttributes, fixArguments, getArity, getCardinality, getCompilerName, getContextNode, getDescription, getDetails, getErrorCodeForTypeErrors, getFunctionItemType, getFunctionName, getIntegerBounds, getNetCost, getOperandRoles, getRequiredType, getResultItemType, getResultItemType, getRetainedStaticContext, getSpecialProperties, getStaticBaseUriString, getStreamerName, importAttributes, isTrustedResultType, makeCall, makeFunction, makeFunctionCall, makeOptimizedFunctionCall, resultIfEmpty, setArity, setDetails, setRetainedStaticContext, supplyTypeInformation, typeCheckCaller
atomize, deepEquals, effectiveBooleanValue, getAnnotations, getStringValue, getStringValueCS, isArray, isMap, makeNewContext, simplify, typeCheck
getLength, head, isStreamed, itemAt, iterate, reduce, subsequence
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getLength, head, itemAt, reduce, subsequence
public static OptionsParameter OPTION_DETAILS
protected Item eval(java.lang.String input, MapItem options, XPathContext context) throws XPathException
eval
in class JsonToXMLFn
input
- JSON input stringoptions
- options for the conversion as a map of xs:string : value pairscontext
- XPath evaluation contextXPathException
- if the syntax of the input is incorrectpublic static Item parse(java.lang.String input, java.util.Map<java.lang.String,Sequence> options, XPathContext context) throws XPathException
input
- JSON input stringoptions
- options for the conversion as a map of xs:string : value pairscontext
- XPath evaluation contextXPathException
- if the syntax of the input is incorrectCopyright (c) 2004-2018 Saxonica Limited. All rights reserved.