MarkLogic 10 Product Documentation
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)
  
Powered by MarkLogic Server | Terms of Use | Privacy Policy