This is a valid construct in MarkLogic (equivalent to the json string {}).
NOTE:array-node {} does not generate an error in this case, but does if object-node {} is replaced by object-node(). This affects detecting used imports for functions referenced after the error, and possibly other things -- this would be resolved by better error recovery.
Given:
the following error is reported by intellij-xquery:
This is a valid construct in MarkLogic (equivalent to the json string
{}
).NOTE:
array-node {}
does not generate an error in this case, but does ifobject-node {}
is replaced byobject-node()
. This affects detecting used imports for functions referenced after the error, and possibly other things -- this would be resolved by better error recovery.