pyhocon icon indicating copy to clipboard operation
pyhocon copied to clipboard

Outputs invalid HOCON/JSON/YAML

Open pauldraper opened this issue 6 years ago • 2 comments

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.

pauldraper avatar Jul 11 '18 02:07 pauldraper

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?

bmartin-pan avatar Feb 14 '19 22:02 bmartin-pan

Should this be closed now that #202 is merged?

scottj97 avatar Feb 29 '20 16:02 scottj97