flask.Config.from_json¶
-
Config.
from_json
(filename, silent=False)[source]¶ Updates the values in the config from a JSON file. This function behaves as if the JSON object was a dictionary and passed to the
from_mapping()
function.Parameters: - filename – the filename of the JSON file. This can either be an absolute filename or a filename relative to the root path.
- silent – set to
True
if you want silent failure for missing files.
New in version 0.11.