Loading TOC...

json:array-size

json:array-size(
   $array as json:array?
) as xs:unsignedLong?

Summary

Returns the size of the array.

Parameters
array An array.

Example

  json:array-size(json:to-array(("a","b")))
  => 2

Stack Overflow iconStack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.