What is the best file format for configuration file?Like A Duck@programming.dev to Technology@lemmy.world – 41 points – 11 months agocross-posted from: https://programming.dev/post/1743099 .yaml, .toml, etc? 45Post a CommentPreviewYou are viewing a single commentView all commentsIf 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 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 work2 more...2 more...
If 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 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 work2 more...2 more...
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 work2 more...
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