Home

Awesome

Description

Transform json string to yaml string without the type infomation.

Features

Binary installation and usage

mac/linux usage

window usage

C:\tmp>more .\1.yaml
a: 1

C:\tmp>.\json2yaml_windows_amd64.exe < ./1.yaml > 2.json

C:\tmp>more .\2.json
{"a":1}
PS C:\tmp> more .\1.json
{"a":1}

PS C:\tmp> Get-Content .\1.json | .\json2yaml_windows_amd64.exe > .\2.yaml
PS C:\tmp> more .\2.yaml
a: 1

Library installation

Development

cd ~/work/json2yaml
GOPATH=`pwd` go get -v github.com/bronze1man/json2yaml
GOPATH=`pwd` go run github.com/bronze1man/json2yaml/j2yBuilder

Notice

Reference