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
Stack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.
Stack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.