json:array-size( $array as json:array? ) as xs:unsignedLong?
Returns the size of the array.
json:array-size(json:to-array(("a","b"))) => 2