Skip to content
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

Does Pyhocon support conversion of Python dicts or raw JSON to HOCON? #140

Open
enlightenalpha opened this issue Dec 9, 2017 · 0 comments

Comments

@enlightenalpha
Copy link

Hello all.

I have a project where I'm pulling Hadoop cluster configs into a dict then dumping as a JSON file that will be used to apply to new clusters post deployment. I need to parse / convert this JSON to HOCON in order to take advantage of HOCON's support of includes - for customer specific property substitution.

Pyhocon's module is fails to parse the following valid JSON:

"value": "{"critical":"83.34","warning":"99.99"}"

In pretty-form this looks like:

value: "{"critical":"83.34", "warning":"99.99"}"

Now, I could be mistaking the purpose of the pyhocon module. Does it support converting raw JSON or Python dicts to HOCON? Online lints don't seem to have a problem with my JSON so I would assume that automatically makes it valid HOCON.

Any guidance would be greatly appreciated!

Thanks.

Please see #138 for more background.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant