Product SiteDocumentation Site

5.2. Object key listing

If the dynamic function call is 0-ary and the left-hand-side is an object, the semantics applied is that of key listing and is as follows.
jdm:keys($o) is returned.
Example 5.2. Object key listing
Retrieving the keys of an object:
Query:
        let $map := { "eyes" : "blue", "hair" : "fuchsia" }
        return $map()
Result:
        eyes hair