Like A Duck@programming.dev to Experienced Devs@programming.dev • 1 year agoWhat is the best file format for configuration file?message-squaremessage-square27 fedilinkarrow-up123file-text
arrow-up123message-squareWhat is the best file format for configuration file?Like A Duck@programming.dev to Experienced Devs@programming.dev • 1 year agomessage-square27 Commentsfedilinkfile-text
minus-squaresimonced@lemmy.onehexbear11·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... linkfedilink
minus-squaresimonced@lemmy.onehexbear1·1 year agoThis is actually pretty genius, why haven't ever thought of that? linkfedilink
minus-squaresimonced@lemmy.onehexbear1·1 year agoI liked the idea to be honest. I can just call the entry "description" instead and all is good ^^ linkfedilink
minus-squarevrighter@discuss.tchncs.dehexbear2·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) linkfedilink
minus-square𝙲𝚑𝚊𝚒𝚛𝚖𝚊𝚗 𝙼𝚎𝚘𝚠@programming.devhexbear2·1 year agoI believe the JSON deserializer .NET ships with has options to allow C#-style comments in JSON files. linkfedilink
minus-squarekersplort@programming.devhexbear1·1 year agoJSON5 is a superset of JSON that supports comments. linkfedilink
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
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)
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.