Convert YAML to JSON
$ yaml2json input.yaml # Output JSON to standard output
- GitHub Releases: Download asset from GitHub Releases and install the executable binary in
$ brew install suzuki-shunsuke/yaml2json/yaml2json
How does it work?
This is very simple.
- Read YAML with gopkg.in/yaml.v2
- Output JSON to the Standard Output with encoding/json
Why do we reinvent a wheel?
We know there are already some tools to convert YAML to JSON, but we develop this tool, because we want a single executable binary for macOS, Linux / AMD64, ARM64. Unfortunately, we can’t find a single executable binary for Linux ARM64.