3
declare function local:descendant-objects($i as json-item) as object*
10
where $v instance of json-item
11
return local:descendant-objects($v)
15
where $v instance of json-item
16
return local:descendant-objects($v)
22
{ "foo" : 42, "bar" : { "blub" : 23 } },
23
{ "foo" : 42, "bar" : { "42" : 23 } })
25
distinct-values($o ! local:descendant-objects($$) ! $$())