We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
When adding a empty string "" in array, it is removed after parsing:
""
Small example
from pyhocon import ConfigFactory from pyhocon import HOCONConverter conf = ConfigFactory.parse_string(''' features: [ less noisy / less pedantic syntax "hey" "" # ability to write comments ] features2 = ["a", "b", "", "d"] ''') print(conf.as_plain_ordered_dict()) print(HOCONConverter.to_json(conf)) print(conf)
Prints
OrderedDict([('features', ['less noisy / less pedantic syntax', 'hey']), ('features2', ['a', 'b', 'd'])]) { "features": [ "less noisy / less pedantic syntax", "hey" ], "features2": [ "a", "b", "d" ] } ConfigTree([('features', ['less noisy / less pedantic syntax', 'hey']), ('features2', ['a', 'b', 'd'])])
When using the regular (scala) HOCON: https://hocon-playground.herokuapp.com/
Output:
{ "features" : [ "less noisy / less pedantic syntax", "hey", "" ], "features2" : [ "a", "b", "", "d" ] }
The text was updated successfully, but these errors were encountered:
Same issue
Sorry, something went wrong.
Same issue.
No branches or pull requests
When adding a empty string
""
in array, it is removed after parsing:Small example
Prints
When using the regular (scala) HOCON:
https://hocon-playground.herokuapp.com/
Output:
The text was updated successfully, but these errors were encountered: