MarkLogic 9 Product Documentation
json.checkConfig

json.checkConfig(
   config as Object
) as Sequence

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 is checked for validity and any errors found returned.

Example

const json = require('/MarkLogic/json/json.xqy');

let config = json.config('full');
config.whitespace = 'ignore';
json.checkConfig(config);
Powered by MarkLogic Server | Terms of Use | Privacy Policy