JsonLoader#

class JsonLoader(app, filename, *args, **kwargs)#

Bases: FileLoader, DictLikeLoaderMixin

Loader for JSON files.

Parameters:
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 json to parse file, with eventually a custom decoder specified by JSON_DECODER.

Return type:

Iterator[ConfigValue]

write(fp, comment='full', comment_default=False)#

Serialize configuration.

Parameters:
Return type:

None