Like A Duck@programming.dev to Experienced Devs@programming.dev · 1 year agoWhat is the best file format for configuration file?message-squaremessage-square44fedilinkarrow-up140arrow-down10file-text
arrow-up140arrow-down1message-squareWhat is the best file format for configuration file?Like A Duck@programming.dev to Experienced Devs@programming.dev · 1 year agomessage-square44fedilinkfile-text
minus-squaresimonced@lemmy.onelinkfedilinkEnglisharrow-up14·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-squareAeroLemming@lemm.eelinkfedilinkEnglisharrow-up15arrow-down3·edit-22 months agodeleted by creator
minus-squaresimonced@lemmy.onelinkfedilinkEnglisharrow-up1·1 year agoThis is actually pretty genius, why haven’t ever thought of that?
minus-squaresimonced@lemmy.onelinkfedilinkEnglisharrow-up1·1 year agoI liked the idea to be honest. I can just call the entry “description” instead and all is good ^^
minus-square𝙲𝚑𝚊𝚒𝚛𝚖𝚊𝚗 𝙼𝚎𝚘𝚠@programming.devlinkfedilinkarrow-up3·1 year agoI believe the JSON deserializer .NET ships with has options to allow C#-style comments in JSON files.
minus-squarekersplort@programming.devlinkfedilinkarrow-up2·1 year agoJSON5 is a superset of JSON that supports comments.
minus-squarevrighter@discuss.tchncs.delinkfedilinkarrow-up2arrow-down1·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
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)