Skip to content

Commit 69b871e

Browse files
chris-evolvedbinaryadamretter
authored andcommitted
[bugfix] Change the return type of the json-to-xml function
1 parent 108ec73 commit 69b871e

File tree

1 file changed

+1
-1
lines changed
  • exist-core/src/main/java/org/exist/xquery/functions/fn

1 file changed

+1
-1
lines changed

exist-core/src/main/java/org/exist/xquery/functions/fn/JSON.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ public class JSON extends BasicFunction {
9090
static final FunctionSignature[] FS_JSON_TO_XML = functionSignatures(
9191
FS_JSON_TO_XML_NAME,
9292
"Parses a string supplied in the form of a JSON text, returning the results in the form of an XML document node.",
93-
returnsOpt(Type.ITEM, "The parsed data as XML"),
93+
returnsOpt(Type.DOCUMENT, "The parsed data as XML"),
9494
arities(
9595
arity(
9696
FS_PARAM_JSON_TEXT

0 commit comments

Comments
 (0)