Like A Duck to Experienced [email protected] • 1 year agoWhat is the best file format for configuration file?message-square40fedilinkarrow-up137arrow-down10file-text
arrow-up137arrow-down1message-squareWhat is the best file format for configuration file?Like A Duck to Experienced [email protected] • 1 year agomessage-square40fedilinkfile-text
minus-square@[email protected]linkfedilinkEnglish12•1 year agoA lot of good answers but I would add one note: use a format that supports comments, and JSON is not one of those…
minus-square@[email protected]linkfedilinkEnglish1•1 year agoThis is actually pretty genius, why haven’t ever thought of that?
minus-square@[email protected]linkfedilinkEnglish1•1 year agoI liked the idea to be honest. I can just call the entry “description” instead and all is good ^^
minus-square𝙲𝚑𝚊𝚒𝚛𝚖𝚊𝚗 𝙼𝚎𝚘𝚠linkfedilink3•1 year agoI believe the JSON deserializer .NET ships with has options to allow C#-style comments in JSON files.
minus-square@[email protected]linkfedilink2•1 year agojson with comments can be parsed by a yaml parser. It’s how I write yaml, in fact (yaml is a superset of json. any valid json is valid yaml, but it also supports comments)
minus-square@[email protected]linkfedilink2•1 year agoJSON5 is a superset of JSON that supports comments.
A lot of good answers but I would add one note:
deleted by creator
You disgust me
This is actually pretty genius, why haven’t ever thought of that?
deleted by creator
I liked the idea to be honest. I can just call the entry “description” instead and all is good ^^
deleted by creator
I believe the JSON deserializer .NET ships with has options to allow C#-style comments in JSON files.
json with comments can be parsed by a yaml parser. It’s how I write yaml, in fact (yaml is a superset of json. any valid json is valid yaml, but it also supports comments)
JSON5 is a superset of JSON that supports comments.