One of my favorite updates to 2.6.0 is the ability to create complex elements on my settings using JSON notation. In previous versions, you had a very limited JSON notation, but now you have the full fledged notation. This is particularly useful if you want to override settings using the environment interceptor. You can actually override datasource elements or any part of the configuration file. It becomes tricky when overriding structures, but the notation helps out incredibly. Let's say that I have a datasource declaration like this on my coldbox configuration file:
But I would like to override or maybe add another datasource element. If I want to override then I can create a setting element on my environment file that can look like this:
This will override the datasources structure with the JSON inflated structure. This is really helpful when overriding complex variables and also for setting up new complex settings.
Blog
Recent Entries
TestBox 7 : Real-Time Streaming, a Browser IDE, and a Major Leap for BoxLang
TestBox 7.x series continues our mission to be the best testing framework for BoxLang and CFML. This release is focused heavily on BoxLang CLI runner enhancements, real-time streaming test execution via SSE, a powerful dry run capability, the brand-new TestBox RUN web IDE, and significant quality-of-life improvements for developers working in both BoxLang and CFML environments.
From Legacy Risk to Modern Agility: A Phased Modernization Roadmap for CFML Teams
Many organizations running CFML applications today face the same challenge.
Their systems still work.
They support core business processes.
They generate revenue.
But at the same time, those platforms are increasingly exposed to risk.
Unsupported runtimes, operational fragility, security exposure, and difficulty integrating with modern systems are becoming more common in environments still running older versions of Adobe ColdFusion or Lucee.
The quest...
Add Your Comment