json2yaml - convert files of JSON objects into a stream of YAML objects
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.
COPYRIGHT AND LICENSE
json2yaml is Copyright 2011 by Rocco Caputo. All rights are reserved. json2yaml is released under the same terms as Perl itself.