A command-line utility to juggle easily with JSON & YAML.
$ yamltools convert:yaml:json <file.yaml> [<file.json>]which is equivalent to:
$ cat file.yaml | yamltools convert:yaml:json [<file.json>]Or using the short-hand wrapper script
$ yaml2json <file.yaml> [<file.json>]Arguments:
file.yamlThe YAML file to read from (- or left empty for standard input).file.jsonThe (optional) JSON file to write output to. If no file specified, write to standard output.
$ yamltools convert:json:yaml <file.json> [<file.yaml>]which is equivalent to:
$ cat file.json | yamltools convert:json:yaml [<file.yaml>]Or using the short-hand wrapper script:
$ json2yaml <file.json> [<file.yaml>]Arguments:
file.jsonThe JSON file to read from (- or left empty for standard input).file.yamlThe (optional) YAML file to write output to. If no file specified, write to standard output.