json2yaml - convert files of JSON objects into a stream of YAML objects
version 0.005
json2yaml [--verbose] [file ...]
json2yaml(1) reads files sequentially, writing them as YAML to standard output.
The YAML stream is vertical, with one field per line, whereas most of the JSON filters write entire objects per line.
This filter is often used as the equivalent of mysql(1)'s \G command:
ego (\G) Send command to mysql server, display result vertically.
The json_xs(1) utility can reformat JSON vertically as well, if you prefer JSON over YAML.
You may read this utility's implementation in its entirety at
perldoc -m json2yaml
App::PipeFilter::JsonToYaml implements this utility.
App::PipeFilter has top-level documentation including a table of contents for all the libraries and binaries included in the project.
https://rt.cpan.org/Public/Dist/Display.html?Name=App-PipeFilter
https://github.com/rcaputo/app-pipefilter
json2yaml is Copyright 2011 by Rocco Caputo. All rights are reserved. json2yaml is released under the same terms as Perl itself.
To install App::PipeFilter, copy and paste the appropriate command in to your terminal.
cpanm
cpanm App::PipeFilter
CPAN shell
perl -MCPAN -e shell install App::PipeFilter
For more information on module installation, please visit the detailed CPAN module installation guide.