Read JSON Configuration into Config Object
read_json_into_config.Rd
Reads a JSON file from the specified path and converts it into a Config
object.
Arguments
- config_path
A string specifying the path to the JSON configuration file.
- optional_fields
A list of strings specifying the optional fields in the JSON file. If a field is not present in the JSON file, and is marked as optional, it will be set to either the empty type (e.g.
chr(0)
), or NULL. If a field is not present in the JSON file, and is not marked as optional, an error will be thrown.
See also
Other config:
Config()
,
Data()
,
Exclusions()
,
Interval
,
Parameters()