++ed by:
TSIBLEY PERLANCAR SHARYANTO

3 PAUSE user(s)
2 non-PAUSE user(s).

Rocco Caputo

NAME

App::PipeFilter::Generic::Json - a generic JSON pipeline filter

VERSION

version 0.005

SYNOPSIS

  package App::PipeFilter::JsonCat;

  use Moose;
  extends 'App::PipeFilter::Generic::Json';
  with 'App::PipeFilter::Role::Transform::None';

  1;

DESCRIPTION

App::PipeFilter::Generic::Json is a generic base class for pipeline filters that read and write streams of JSON objects.

It subclasses App::PipeFilter::Generic and customizes it with the following roles: App::PipeFilter::Role::Reader::Sysread, App::PipeFilter::Role::Input::Json and App::PipeFilter::Role::Output::Json.

Further customization is done by implementing a transform() method or consuming a role that implements one. App::PipeFilter::JsonCat consumes a role that does no transformation. App::PipeFilter::JsonCut implements a transform() method that extracts certain fields.

Additional customization is possible by overriding or extending the generic classes' methods in the usual ways.

SEE ALSO

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

  perldoc -m App::PipeFilter::Generic::Json

App::PipeFilter::Generic documents all the methods provided by the base class and roles.

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

BUGS

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

REPOSITORY

https://github.com/rcaputo/app-pipefilter

COPYRIGHT AND LICENSE

App::PipeFilter::Generic::Json is Copyright 2011 by Rocco Caputo. All rights are reserved. App::PipeFilter::Generic::Json is released under the same terms as Perl itself.