Why? Because writing nested YAML by hand during development and testing is easier than JSON.
brew install hbagdi/tap/y2j
Navigate to the release page
and install using a Debian or RPM package.
Alternatively, you can take the .tar.gz
file and install the binary in your $PATH.
echo "foo: bar" | y2j | http httpbin.org/post