Home

Awesome

Description

Transform yaml string to json string without the type infomation.

Features

Binary installation and usage

mac/linux usage

window usage

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

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

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

PS C:\tmp> Get-Content .\1.yaml | .\yaml2json_windows_amd64.exe > .\2.json
PS C:\tmp> more .\2.json
{"a":1}

Library installation

Development

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

Notice

Reference