yj
Convert between YAML, TOML, JSON, and HCL, preserving map order. More information: https://github.com/sclevine/yj.
- Convert [y]AML to JSON (default) from
stdinand write the result tostdout:
yj < -y
- Convert [t]OML to [y]AML:
yj < -ty
- Convert [j]SON to [t]OML with [i]ndentation:
yj < -jti
- Convert H[c]L to [j]SON:
yj < -cj
- Convert [y]AML to H[c]L ignoring inf/[n]aN conversion:
yj < -ycn
- Display [v]ersion:
yj -v
来源:tldr-pages contributors · 作者与贡献记录 · CC BY 4.0。离线整理了版式、链接和媒体显示。
