json:null() as empty-sequence()
Returns the JSON null value, which is an empty sequence to XQuery, but not a Sequence when passed to JavaScript.
json:null() => ()