Convert
Yaml to Json¶
To convert output to json, use the --tojson (or -j) flag. This can only be used with the read command.
Given a sample.yaml file of:
then
will output
Json to Yaml¶
To read in json, just pass in a json file instead of yaml, it will just work :)
e.g given a json file
then
will output
Last updated