Open x4e-jonas opened 1 year ago
While the JSON standard does not include comments, many parsers, including the one cineast uses, support C-style comments, so you can use comments if you want. TOML could potentially be an alternative if one wanted. I'm not a bit fan of INI and YAML, as they are somewhat limited and/or cumbersome. There's also HOCON which, being a superset of JSON would have the advantage that configurations would even stay backwards compatible.
JSON is hard to read and write for humans. E.g. you can't just diff/merge lines of config and it does not support comments.
I'd suggest TOML since it's a very simple standardized format and Java implementations are already available. Other candidates are YAML, INI or HCL like formats.