Loading TOC...

MarkLogic 9 Product Documentation
json:array-set-javascript-by-ref

json:array-set-javascript-by-ref(
   $array as json:array,
   $key as xs:boolean
) as empty-sequence()

Summary

If true is specified, sets a json:array to be passed to JavaScript by reference. By default, a map:map is passed to JavaScript by value.

Parameters
array A json array.
key True or false.

Example

  json:array-set-javascript-by-ref($table, fn:true())
  => ()

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