Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

executable file 63 lines (37 sloc) 1.373 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63
#!/usr/bin/perl
use App::PipeFilter::JsonToYaml;
exit App::PipeFilter::JsonToYaml->new_with_options()->run();

__END__

=pod

=head1 NAME

json2yaml - convert files of JSON objects into a stream of YAML objects

=head1 SYNOPSIS

json2yaml [--verbose] [file ...]

=head1 DESCRIPTION

json2yaml(1) reads files sequentially, writing them as YAML to
standard output.

=head1 PRO TIPS

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.

=head1 SEE ALSO

You may read this utility's implementation in its entirety at

perldoc -m json2yaml

L<App::PipeFilter::JsonToYaml> implements this utility.

L<App::PipeFilter> has top-level documentation including a table of
contents for all the libraries and binaries included in the project.

=head1 BUGS

L<https://rt.cpan.org/Public/Dist/Display.html?Name=App-PipeFilter>

=head1 REPOSITORY

L<https://github.com/rcaputo/app-pipefilter>

=head1 COPYRIGHT AND LICENSE

json2yaml
is Copyright 2011 by Rocco Caputo.
All rights are reserved.
json2yaml
is released under the same terms as Perl itself.

=cut

# vim: ts=2 sw=2 expandtab
Something went wrong with that request. Please try again.