POE::Filter::JSONMaybeXS - A POE filter using JSON::MaybeXS
version 0.002
use POE::Filter::JSONMaybeXS; my $filter = POE::Filter::JSONMaybeXS->new( allow_nonref => 1, # see the JSON::MaybeXS new options ); my $obj = { foo => 1, bar => 2 }; my $json_array = $filter->put( [ $obj ] ); my $obj_array = $filter->get( $json_array ); use POE qw( Filter::Stackable Filter::Line Filter::JSONMaybeXS ); my $filter = POE::Filter::Stackable->new(); $filter->push( POE::Filter::Line->new(), POE::Filter::JSONMaybeXS->new(), );
More documentation to come...
More tests to come...
Based on POE::Filter::JSON
Best used together with POE::Filter::Line
Torsten Raudssus <torsten@raudss.us>
This software is copyright (c) 2015 by Torsten Raudssus.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
To install POE::Filter::JSONMaybeXS, copy and paste the appropriate command in to your terminal.
cpanm
cpanm POE::Filter::JSONMaybeXS
CPAN shell
perl -MCPAN -e shell install POE::Filter::JSONMaybeXS
For more information on module installation, please visit the detailed CPAN module installation guide.