Skip to content

Coverts JSON to YAML and YAML to JSON. Written in Go so it can be statically compiled and dropped anywhere.

License

Notifications You must be signed in to change notification settings

quantumew/jamal

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Jamal

YAML to JSON and JSON to YAML conversion tool. Written in Golang so it can be statically compiled and dropped anywhere you need it.

Build of latest release.

Build

go get github.com/quantumew/jamal
cd "$GOPATH/src/github.com/quantumew/jamal"
go build
mv jamal <in you path somewhere>

Usage

./jamal <action> [<input-file>]

Options:
    -h --help       Show this message.

Arguments:
    <action>        Conversion action. [yamltojson, y2j, yaml2json | jsontoyaml, j2y, json2yaml]

    <input-file>    Path to data file.

Examples

# Output YAML from a JSON file.
jamal json2yaml some-file.json

# Output JSON from a YAML file.
jamal yaml2json some-file.yaml

# Output YAML from JSON from STDIN.
echo '{"property": 5, "otherThing": true}' | jamal j2y

About

Coverts JSON to YAML and YAML to JSON. Written in Go so it can be statically compiled and dropped anywhere.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages