Like A Duck to Technology@lemmy.worldEnglish • 2 years agoWhat is the best file format for configuration file?message-square60fedilinkarrow-up142arrow-down12
arrow-up140arrow-down1message-squareWhat is the best file format for configuration file?Like A Duck to Technology@lemmy.worldEnglish • 2 years agomessage-square60fedilink
minus-squareVeraxuslinkfedilink17•2 years agoIf you want the file to be directly human readable/editable: TOML YAML If you never need to look at it or edit it manually: JSON
minus-square@vrighter@discuss.tchncs.delinkfedilinkEnglish14•2 years agoI hate yaml with a passion. for stuff such as ansible it becomes an uneditable mess (one copy and paste away from destroying the whole file) luckily, yaml is a superset of json, so you could just write json and feed it through a yaml parser and it’ll work
If you want the file to be directly human readable/editable:
If you never need to look at it or edit it manually:
I hate yaml with a passion. for stuff such as ansible it becomes an uneditable mess (one copy and paste away from destroying the whole file)
luckily, yaml is a superset of json, so you could just write json and feed it through a yaml parser and it’ll work