• Veraxus@kbin.social
    link
    fedilink
    arrow-up
    14
    ·
    1 year ago

    If you want the file to be directly human readable/editable:

    1. TOML
    2. YAML

    If you never need to look at it or edit it manually:

    1. JSON
    • vrighter@discuss.tchncs.de
      link
      fedilink
      English
      arrow-up
      14
      ·
      1 year ago

      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