hjson-py icon indicating copy to clipboard operation
hjson-py copied to clipboard

Round-tripping comments?

Open pchampin opened this issue 5 years ago • 3 comments

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?

pchampin avatar Apr 11 '19 15:04 pchampin

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.

dqsully avatar Apr 11 '19 15:04 dqsully

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,

erwanp avatar Jul 03 '21 13:07 erwanp

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

sffc avatar Jul 04 '21 06:07 sffc