FYI, I'm using
yq
version 4 bymikefarah
Command:
cat <YAML-FILE-NAME> | yq e -j
Example:
cat config.yaml | yq e -j
Reference:
FYI, I'm using
yq
version 4 bymikefarah
Command:
cat <YAML-FILE-NAME> | yq e -j
Example:
cat config.yaml | yq e -j
Reference:
How to convert YAML to JSON using
yq
?FYI, I'm using
yq
version 4 bymikefarah
Command:
cat <YAML-FILE-NAME> | yq e -j
As of version v4.16
I'm getting a deprecation warning that -j
or --tojson
.
You should use -o json
instead:
cat <YAML-FILE-NAME> | yq e -o json
If
mikefarah/yq
isn't your thing, trykislyuk/yq
.Command:
Example: