/y2j2y

yaml to json / json to yaml converter y(*^J^*)y

Primary LanguageGoMIT LicenseMIT

y2j2y

Build Status

yaml to json / json to yaml converter.

Install

Download from release page.

Example

$ cat yaml.yaml
yaml:
  hello: world
  array:
    - 1
    - 2
    - 3
    
$ cat yaml.yaml | yaml2json
{"yaml":{"hello":"world","array":[1,2,3]}}

% cat yaml.yaml | yaml2json | json2yaml
yaml:
  array:
  - 1
  - 2
  - 3
  hello: world