json-cfg
json-cfg copied to clipboard
JSON configuration files with comments, unquoted keys, trailing commas and line number information for config error reporting.
load function would now work with pathlib Path objects
I recently referenced jsoncfg's node_location() in an answer on stackoverflow https://stackoverflow.com/questions/55684780/get-line-number-while-parsing-a-json-file/63621669#63621669 I noticed there aren't many invocations of node_location() in the current documentation. I'm hoping we could copy my answer...
I am using json-cfg in a python application and is working ok, but now I need to save in the json some configuration parameters for holding console colors. For example,...
Excellent work do you still publish in pypi ?
Is it possible to access the parameters of a config file via string only? Consider a config file with the content below: ```json { "level_0": { "level_1": { "param_0": "value_0"...
Hello, I was wondering if it were possible to add a way to force all values to be pulled as lowercase? I searched on the documentation page for "lower" and...
This works for me. https://github.com/Synerty/json-cfg/commit/7214f33265fe8d274641ae8e4686cc0e6c6e987a
Write helpful `__str__` and/or `__repr__` for the config wrapper classes (`ConfigJSONObject`, `ConfigJSONArray`, and `ConfigJSONValue`).
Based on the available info in `JSONConfigValueNotFoundError` it would be possible to produce more human friendly and easier to understand error messages.