Examples
Example configuration snippets
Demo configuration with inclusion and expansion
Assume the following directories/files:
config/config.json
config/includes/globals.json
config/includes/modules/mod01.json
config/includes/modules/mod02.json
When inclusion and expansion is performed, config.json
will have the following content:
Note that:
globals.json
include was expanded to an objectmodules
include was expanded to an array containing each of the JSON files in the directory as elementsall expansion expressions (
${globals.demo_dir}
) are replaced with the property value ("/demo"
)