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)';