pyhocon
pyhocon copied to clipboard
Outputs invalid HOCON/JSON/YAML
There is insufficient escaping of outputs.
Conversion example
regex: "[0-9]\.[0-9]*"
used to produce
{
"regex": "[0-9]\\.[0-9]*"
}
but since #173 now produces malformed
{
"regex": "[0-9]\.[0-9]*"
}
which is invalid.
The HOCON is probably invalid too (IDK), but in any case the Python API will have the same problem.
It looks like the json converter doesn't handle a lot of cases.
Compared to the Python json converter.
Is there a reason that the json module is not used?
Should this be closed now that #202 is merged?