file.json
{ "cosign":{"pkm":"arkade"}, "flux":{"pkm":"go"}, "kubectl":{"pkm":"arkade"}}
version: '3'tasks: default: vars: FILE: sh: cat file.json ARRAY: ref: "fromJson .FILE" cmds: - for: var: ARRAY cmd: | echo '{{.KEY}}: {{.ITEM.pkm}}'
task: [default] echo 'cosign: arkade'cosign: arkadetask: [default] echo 'flux: go'flux: gotask: [default] echo 'kubectl: arkade'kubectl: arkade
tasks: foo: vars: ARRAY: [1, 2, 3]
tasks: foo: vars: ARRAY: - 1 - 2 - 3