package CouchDB::ExternalProcess;
use strict;
use warnings;
use Attribute::Handlers;
use JSON::Any;
BEGIN {
use Exporter ();
use vars qw($VERSION @ISA @EXPORT @EXPORT_OK %EXPORT_TAGS);
($class, %parameters) = @_;
my $self = bless ({}, ref ($class) || $class);
$self->jsonParser(JSON::Any->new);
return $self;
}
=head2 run
Run the action, read lines from STDIN and pro
(my $reqJson = <$in_fh>) {
my $output = $self->_process($reqJson);
print $out_fh $output . $/;
}
close($in_fh);
close($out_fh);
$self->_destroy;
}
=head2 jsonParser