Open abnerjacobsen opened 6 years ago
Hi,
Just to let you know, this library hasn't been finished yet and it is meant to be a read-only config library.
config._data
is not a Python dict, it is a IgnoreCaseDict that inherits from Python MutableMapping
.
Unfortunately json.dumps
doesn't support MutableMapping
, you would need to implement your own JSONEncoder to make it work or you would need to convert it to Python dict
.
@viniciuschiele
I'm testing Central but have stucked in an problem: After load some configuration from a json file I got error when try to use json.dumps to save the config data values to another json file:
How I can convert the contents of config._data in an python string using json.dumps ?
the content of the original json file is:
Thanks,