libioc.Config.Type.JSON module

ioc configuration stored in a JSON file.

class libioc.Config.Type.JSON.ConfigJSON(file=None, logger=None)[source]

Bases: libioc.Config.Prototype.Prototype

ioc configuration stored in a JSON file.

config_type = 'json'
map_input(data)[source]

Parse and normalize JSON data.

Return type

Data

map_output(data)[source]

Output configuration data as JSON string.

Return type

str

class libioc.Config.Type.JSON.DatasetConfigJSON(dataset=None, file=None, logger=None)[source]

Bases: libioc.Config.Dataset.DatasetConfig, libioc.Config.Type.JSON.ConfigJSON

ConfigFile in JSON format.