Group
Extension

Matches 3

Data-Collector ( X/XS/XSAWYERX/Data-Collector-0.15.tar.gz, XSAWYERX, 2012; MetaCPAN )
Data-Collector/lib/Data/Collector/Serializer/JSON.pm ( view source; MetaCPAN )
package Data::Collector::Serializer::JSON;
{
  $Data::Collector::Serializer::JSON::VERSION = '0.15';
}
# ABSTRACT: A JSON serializer for Data::Collector

use JSON;
use Moose;
use namespace::autoclean;
( $self, $data ) = @_;

    return encode_json $data;
}

__PACKAGE__->meta->make_immutable;
1;



=pod

=head1 NAME

Data::Collector::Serializer::JSON - A JSON serializer for Data::Collector

=head1 V
ERSION

version 0.15

=head1 DESCRIPTION

Utilizes L<JSON>.

=head1 SUBROUTINES/METHODS

=head2 serialize

Gets data, serializes it and returns it.

=head1 AUTHOR

Sawyer X <xsawyerx@cpan.org>

=head1
Data-Collector ( X/XS/XSAWYERX/Data-Collector-0.15.tar.gz, XSAWYERX, 2012; MetaCPAN )
Data-Collector/lib/Data/Collector/App.pm ( view source; MetaCPAN )
o', isa => 'Str', default => 'OpenSSH' );
has 'format' => ( is => 'ro', isa => 'Str', default => 'JSON'    );
has 'os'     => ( is => 'ro', isa => 'Str', default => 'CentOS'  );

has 'output' => (
   
ne_args

Any additional arguments the engine might want.

=head2 format

Type of serialization (C<JSON> or C<YAML>, for example).

=head2 format_args

Any additional arguments the serializer might wan
Data-Collector ( X/XS/XSAWYERX/Data-Collector-0.15.tar.gz, XSAWYERX, 2012; MetaCPAN )
Data-Collector/lib/Data/Collector.pm ( view source; MetaCPAN )
s';
use namespace::autoclean;

has 'format'        => ( is => 'ro', isa => 'Str',     default => 'JSON'     );
has 'format_args'   => ( is => 'ro', isa => 'HashRef', default => sub { {} } );
has 'engi
# default
        engine_args => { password => read_password('Pass: ') },
        format      => 'JSON', # default
    );

    my %data = $collector->collect;
    ...

Data::Collector uses I<Info>s to
ill actually be a module
to push all the changes you want in a database you have.

The default is JSON.

=head2 format_args(HashRef)

Much like I<engine_args>, you can supply any additional arguments 

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