POE::Filter::JSON - A POE filter using JSON


POE-Filter-JSON documentation  | view source Contained in the POE-Filter-JSON distribution.

Index


NAME

Top

POE::Filter::JSON - A POE filter using JSON

SYNOPSIS

Top

    use POE::Filter::JSON;

    my $filter = POE::Filter::JSON->new(
        json_any => {
            allow_nonref => 1,  # see the new() method docs
        },
        delimiter => 0,
    );
    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::JSON );

    my $filter = POE::Filter::Stackable->new();
    $filter->push(
        POE::Filter::JSON->new( delimiter => 0 ),
        POE::Filter::Line->new(),
    );

DESCRIPTION

Top

POE::Filter::JSON provides a POE filter for performing object conversion using JSON. It is suitable for use with POE::Filter::Stackable. Preferably with POE::Filter::Line.

METHODS

Top

AUTHOR

Top

David Davis <xantus@cpan.org>

LICENSE

Top

Artistic

SEE ALSO

Top

POE, JSON::Any, POE::Filter::Stackable, POE::Filter::Line


POE-Filter-JSON documentation  | view source Contained in the POE-Filter-JSON distribution.