-
Notifications
You must be signed in to change notification settings - Fork 121
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Parsing error when loading JSON file containing quoted, multi-key/value dict. #138
Comments
Update - when I remove the escaped quotes, pyhocon is able to parse the file just fine. |
Any ideas / thoughts on how to handle this or if this is expected behavior? As I mentioned, I can get around it by removing the escaped quotes, but this is a risky proposition as I'm ruining the integrity of the original values which leads to serialization errors. |
So, it looks like the problem centers around the fact that the value being parsed contains 2 comma delimited key:value pairs: "{"warning":500,"critical":"never"}" If I change it to: "{"warning":500}" ...the parser doesn't complain. However, this isn't the value I need to pass so defeats the purpose. I see the same behavior with the following value: "morphlines:[\n {\n id:common\n importCommands:["org.kitesdk.morphline.", "com.ngdata."]" The parser does not like the comma delimited portion of the importCommands chunk, however this is all part of a value so I'm not sure why the parser is trying to process: ParseSyntaxException: Expected "}" (at char 33173), (line:616, col:115) |
I have a HOCON file which contains many key values similar to the following:
value: "{\"critical\":\"0.00\",\"warning\":\"99.99\"}"
When trying to parse, I receive the following exception:
The file validates against several HOCON linters. Why are escaped double quotes not supported?
The text was updated successfully, but these errors were encountered: