/y2j

Convert YAML to JSON

Primary LanguageGoApache License 2.0Apache-2.0

y2j - a YAML to JSON converter

Why? Because writing nested YAML by hand during development and testing is easier than JSON.

Install

macOS

brew install hbagdi/tap/y2j

Linux

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.

Usage

echo "foo: bar" | y2j | http httpbin.org/post