Like A Duck to Experienced Devs@programming.dev • 1 year agoWhat is the best file format for configuration file?message-square47fedilinkarrow-up142arrow-down10file-text
arrow-up142arrow-down1message-squareWhat is the best file format for configuration file?Like A Duck to Experienced Devs@programming.dev • 1 year agomessage-square47fedilinkfile-text
minus-square@simonced@lemmy.onelinkfedilinkEnglish16•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@simonced@lemmy.onelinkfedilinkEnglish1•1 year agoThis is actually pretty genius, why haven’t ever thought of that?
minus-square@simonced@lemmy.onelinkfedilinkEnglish1•1 year agoI liked the idea to be honest. I can just call the entry “description” instead and all is good ^^
minus-square@sfera@beehaw.orglinkfedilink1•1 year agoHow do you comment multiple properties separately?
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@kersplort@programming.devlinkfedilink2•1 year agoJSON5 is a superset of JSON that supports comments.
minus-square@vrighter@discuss.tchncs.delinkfedilink1•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)
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
How do you comment multiple properties separately?
deleted by creator
I believe the JSON deserializer .NET ships with has options to allow C#-style comments in JSON files.
JSON5 is a superset of JSON that supports comments.
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)