Skip to main content

JsonFileSource

The JsonFileSource implementation of ConfigurationSource extends ObjectSource, but it simply first loads the data from a JSON file.

The default context field used to define the file path to load is context.config, but this can be changed by initializing the constructor with a different contextFieldName option.

(This same field name is used to pass the actual configuration to the base class ObjectSource.load!)