JsonLoader#
- class JsonLoader(app, filename, *args, **kwargs)#
Bases:
FileLoader,DictLikeLoaderMixinLoader for JSON files.
- Parameters:
app (Application)
filename (str)
args (Any)
kwargs (Any)
- JSON_DECODER: type[JSONDecoder] | None = None#
Custom json decoder to use.
- JSON_ENCODER#
Custom json encoder to use.
alias of
JsonEncoderTypes
- load_config()#
Populate the config attribute from TOML file.
We use builtin
jsonto parse file, with eventually a custom decoder specified byJSON_DECODER.- Return type: