API Overview
Create a new JSON configuration file programmatically
Read an existing JSON configuration file
Read an existing Lucee 4 server configuration file
Read an existing JSON config file and load into a Lucee 5 web context
Notes
The JSONConfig
will read/write to a JSON file called .CFConfig.json
by default in the home directory you specify. You can alternatively specify a full path to a JSON file to change the name.
The Lucee 4 and Lucee 5 web components expect the CFHomePath
to be the folder containing the lucee-web.xml.cfm
file.
An example would be:
The Lucee 4 and Lucee 5 server components expect the CFHomePath
to be the lucee-server
folder containing the /context/lucee-server.xml
file.
An example would be:
The Adobe components expect the CFHomePath
to be the cfusion
folder that contains the lib/neo-runtime.xml
file.
An example would be:
The code in this library has only been tested on Lucee and likely doesn't work on Adobe ColdFusion. If anyone wants to make it compatible, feel free to try by beware of tons of use of the Elvis operator, reliance on sorted JSON structs, and some specific WDDX behavior.
Last updated