Group
Extension

Matches 3

Alien-Taco ( G/GS/GSB/Alien-Taco-0.003.tar.gz, GSB, 2023; MetaCPAN )
Alien-Taco/lib/Alien/Taco/Server.pm ( view source; MetaCPAN )
 $self = shift;
    filter_struct(shift, sub {
        my $x = shift;
        blessed($x) and not JSON::is_bool($x);
    },
    sub {
        my $nn = my $n = ++ $self->{'nobject'};
        $self->{'o
Alien-Taco ( G/GS/GSB/Alien-Taco-0.003.tar.gz, GSB, 2023; MetaCPAN )
Alien-Taco/lib/Alien/Taco/Object.pm ( view source; MetaCPAN )
}

=back

=head2 JSON Methods

=over 4

=item TO_JSON

This method will be called by the JSON encoder to convert the object
to a hashref which is encodable as JSON.

=cut

sub TO_JSON {
    my $self =
Alien-Taco ( G/GS/GSB/Alien-Taco-0.003.tar.gz, GSB, 2023; MetaCPAN )
Alien-Taco/lib/Alien/Taco/Transport.pm ( view source; MetaCPAN )
s the communication between Taco clients
and servers.

=cut

package Alien::Taco::Transport;

use JSON;

use strict;

our $VERSION = '0.003';

=head1 METHODS

=over 4

=item new(in => $input, out => $
ndles and instantiates a JSON processor object.

=cut

sub new {
    my $class = shift;
    my %opts = @_;

    my $json = new JSON();
    $json->convert_blessed(1);
    $json->ascii(1);

    if (exis
ts $opts{'filter_single'}) {
        $json->filter_json_single_key_object(@{$opts{'filter_single'}});
    }

    binmode $opts{'in'}, ':encoding(UTF-8)';
    binmode $opts{'out'}, ':encoding(UTF-8)';

Powered by Groonga
Maintained by Kenichi Ishigaki <ishigaki@cpan.org>. If you find anything, submit it on GitHub.