Configloader Json

class dffml.configloader.json.JSONConfigLoader(config: Optional[Type[BaseConfig]])[source]
CONFIG

alias of BaseConfig

CONTEXT

alias of JSONConfigLoaderContext

class dffml.configloader.json.JSONConfigLoaderContext(parent: BaseConfigLoader)[source]
async dumpb(resource: Dict) bytes[source]

ConfigLoaders need to be serialize a dict representation of the resources they are asked to dump.

async loadb(resource: bytes) Dict[source]

ConfigLoaders need to be able to return the dict representation of the resources they are asked to load.