4 ms·
hjson is indeed more H vs json You've mentioned in the blog that ": it's meant to be written by humans, read and modified by other humans, then read by program
by eviks 3y ago
hjson is indeed more H vs json
You've mentioned in the blog that ": it's meant to be written by humans, read and modified by other humans, then read by programs", but is it possible for apps to (roundtrip)-edit those configs preserving all the human syntax intact? It's rather common for apps to e.g. have font size changed, but unfortunately also common to destroy human formatting in the process
- dystroy 3y agoThis is theoretically possible, and I actually toyed with the idea. I didn't do it in my deserializer because of the big value you have in Rust in being compatible with serde and that wouldn't be. But this would be interesting, probably as an side library.
- ftrobro 3y agoRoundtrips without destroying comments or formatting is supported in the JavaScript, Go and C++ implementations of Hjson, but not in the other implementations (I think).