Loading TOC...

json:check-config

json:check-config(
   $config as map:map
) as element(json:report)*

Summary

This function checks a json configuration object and returns a report.

Parameters
config The configuration object representing the strategy.

Usage Notes

The supplied configuration object (a map:map) is checked for validity and any errors found returned.

Example

xquery version "1.0-ml";
import module namespace json="http://marklogic.com/xdmp/json"
 at "/MarkLogic/json/json.xqy";

let $config := json:config("full") => map:with("whitespace", "ignore")
return json:check-config($config)
  

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