NAME

json2yaml.pl : convert JSON to YAML with formatting options.

VERSION

Version 0.05

SYNOPSIS

json2yaml.pl -i "input.json" -o "output.yaml" --escape-unicode --pretty

USAGE

json2yaml.pl

Options:

--i filename : specify a filename which contains a JSON data structure.
--I "string" : specify a string which contains a JSON data structure.
--o outputfilename : specify the output filename to write the result to, which will be YAML.
--escape-unicode : it will escape all unicode characters, and convert them to something like "\u0386"

Input can be read from an input file (--i), from a string at the command line (--I) (properly quoted!), from STDIN (which also includes a file redirection json2yaml.pl < inputfile.json > outputfile.yaml

For more information see Data::Roundtrip.

AUTHOR

Andreas Hadjiprocopis, <bliako at cpan.org> / <andreashad2 at gmail.com>