yj

Convert between YAML, TOML, JSON, and HCL formats

brewmacoslinux
Try with needOr install directly
Source

About

CLI to convert between YAML, TOML, JSON and HCL

Commands

yj

Examples

Convert YAML file to JSON$ yj -yaml -json < config.yaml > config.json
Convert JSON to TOML format$ yj -json -toml < config.json > config.toml
Convert HCL to YAML format$ yj -hcl -yaml < config.hcl > config.yaml