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

Round-tripping comments? #16

Open
pchampin opened this issue Apr 11, 2019 · 3 comments
Open

Round-tripping comments? #16

pchampin opened this issue Apr 11, 2019 · 3 comments

Comments

@pchampin
Copy link

According to the HJson FAQ:

Hjson allows you to round-trip your data, including your comments.

  • But not yet with all implementations, PRs welcome :)

Unless I'm mistaken, hjson-py does not round-trip comments. Is there a plan to support it in the future?

I would gladly (try to) contribute a PR, so I had a look at the source. However it seems to me that such a feature would require a heavy refactoring of the data-structures involved, and possibly also of the parsing functions. Or did I miss something?

@dqsully
Copy link
Member

dqsully commented Apr 11, 2019

No, I don't think hjson-py supports round-trip comments at the moment, and there isn't any active development on this feature. However, the JavaScript implementation does support round-trip comments.

@erwanp
Copy link

erwanp commented Jul 3, 2021

Hello ! I'd be interested for round-trip support to use hson as a configuration file in an open-source physics code.

Is this still not on the roadmap ?
If not; do you know of any alternatives ?

Best,

@sffc
Copy link
Contributor

sffc commented Jul 4, 2021

There's no roadmap for this, but a pull request would be appreciated!

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

4 participants