3 ms·
I don't think json is the right language for this. You can't really have comments, and your scripts have to be in a single line (because json doesn't support mu
by thayne 1y ago
I don't think json is the right language for this. You can't really have comments, and your scripts have to be in a single line (because json doesn't support multi-line strings).
- alurm 1y agoYes, but you can generate JSON with other tools easily. home.md describes how you can do it with Nix, but just as easily you can use Cue or something else. Edit: mentioned this in the README explicitly. Thanks!
- 9dev 1y agoYou could at least use Hujson[0], which adds comments and trailing commas; makes for a more convenient editing experience, at the price of an additional parsing step. [0]: https://github.com/tailscale/hujson https://github.com/tailscale/hujson