3 ms·
I agree that TOML sucks for nested structures. JSON5 is probably the best option at the moment. https://json5.org/ https://json5.org/ * Instantly obvious wha
by IshKebab 6y ago
I agree that TOML sucks for nested structures.
JSON5 is probably the best option at the moment.
https://json5.org/ https://json5.org/
* Instantly obvious what the structure is (unlike YAML or TOML).
* Everyone knows JSON already. This just makes it a bit nicer.
* No noob security mistakes or type confusion caused by underquoting like YAML.
- somethingwitty1 6y agoDon't forget the truncation problem with YAML/TOML. A partially read/transmitted YAML/TOML file is often still considered valid.
- dflock 6y agoThat also makes it really easy to concatenate them, either `cp a.yaml + b.yaml c.yaml` or just `cat a.yaml >> b.yaml` - which is quite nice, compared to trying to do this with JSON etc... files.