yj
Convert between YAML, TOML, JSON, and HCL, preserving map order. tldr-pages
On several platforms
Several platforms
Convert yAML to JSON (default) from stdin and write the result to stdout
yj <file.yml -yIdentifyConvert tOML to yAML
yj <file.toml -tyIdentifyConvert jSON to tOML with indentation
yj <file.json -jtiIdentifyConvert HcL to jSON
yj <file.hcl -cjIdentifyConvert yAML to HcL ignoring inf/naN conversion
yj <file.yml -ycnIdentifyDisplay version
yj -vIdentify