Group
Extension

Matches 35359

JS-SourceMap ( A/AT/ATTILA/JS-SourceMap-0.1.2.tar.gz, ATTILA, 2017; MetaCPAN )
JS-SourceMap/lib/JS/SourceMap/Decoder.pm ( view source; MetaCPAN )
string);

=head1 DESCRIPTION

=cut

package JS::SourceMap::Decoder;
use strict;
use warnings;
use JSON;
use JS::SourceMap::Token;
use JS::SourceMap::Index qw/token_index/;
use vars qw($B64chrs @B64);
ce.  Options:

=over 8

=item * json_options => $options_as_arrayref

Specify an array of options to pass to the L<JSON> constructor when
parsing JSON.  We use the JSON defaults unless this option is 
y $json = JSON->new($self->opt('json_options'))->decode($string);
	my @sources = @{$json->{'sources'}};
	my $sourceRoot = $json->{'sourceRoot'} if exists $json->{'sourceRoot'};
	my @names = @{$json->{
Armadito-Agent ( V/VH/VHAMON/Armadito-Agent-0.10.1.tar.gz, VHAMON, 2017; MetaCPAN )
Armadito-Agent/lib/Armadito/Agent/HTTP/Client/ArmaditoAV.pm ( view source; MetaCPAN )
n qw{ POST };
use UNIVERSAL::require;
use URI;
use Encode;
use Data::Dumper;
use URI::Escape;
use JSON;

use Armadito::Agent::HTTP::Client::ArmaditoAV::Event;
use Armadito::Agent::HTTP::Client::Armadi
rmadito-agent',
		'Referer'    => $url
	);

	$headers->header( 'Content-Type'     => 'application/json' ) if ( $params{method} eq 'POST' );
	$headers->header( 'X-Armadito-Token' => $self->{token} )   
{
	my ( $self, $response ) = @_;

	$self->{logger}->info( $response->content() );
	my $obj = from_json( $response->content(), { utf8 => 1 } );

	# Update armadito agent_id
	if ( defined( $obj->{token}
Armadito-Agent ( V/VH/VHAMON/Armadito-Agent-0.10.1.tar.gz, VHAMON, 2017; MetaCPAN )
Armadito-Agent/lib/Armadito/Agent/Task/State.pm ( view source; MetaCPAN )
:Task::State;

use strict;
use warnings;
use base 'Armadito::Agent::Task';

use Data::Dumper;
use JSON;

sub new {
	my ( $class, %params ) = @_;

	my $self = $class->SUPER::new(%params);

	if ( $param
teobj;
	my $json_text = to_json( $self->{jobj} );

	my $response = $self->{glpi_client}->sendRequest(
		"url"   => $self->{agent}->{config}->{server}[0] . "/api/states",
		message => $json_text,
		met
se ) = @_;

	$self->{logger}->info( "Error Response : " . $response->content() );
	my $obj = from_json( $response->content(), { utf8 => 1 } );
	$self->{logger}->error( Dumper($obj) );

	return $self;
Armadito-Agent ( V/VH/VHAMON/Armadito-Agent-0.10.1.tar.gz, VHAMON, 2017; MetaCPAN )
Armadito-Agent/lib/Armadito/Agent/Antivirus/Armadito/Task/Scan.pm ( view source; MetaCPAN )
 Armadito Antivirus on-demand scan using AV's API REST protocol and then send a brief report in a json formatted POST request to Armadito plugin for GLPI.

=head1 FUNCTIONS

=head2 run ( $self, %param
App-yajg ( G/GR/GRAGORY/App-yajg-0.20.tar.gz, GRAGORY, 2017; MetaCPAN )
App-yajg/lib/App/yajg/Hooks.pm ( view source; MetaCPAN )
;

use JSON qw();

sub boolean_to_scalar_ref {
    return unless JSON::is_bool($_[0]);
    $_[0] = $_[0]
      ? \(my $t = 1)
      : \(my $f = 0);
}

sub boolean_to_int {
    return unless JSON::is_b
ool($_[0]);
    $_[0] = int(!!$_[0]);
}

sub boolean_to_str {
    return unless JSON::is_bool($_[0]);
    $_[0] = $_[0]
      ? 'true'
      : 'false';
}

sub _decode_uri ($) {
    local $_ = shift //
Armadito-Agent ( V/VH/VHAMON/Armadito-Agent-0.10.1.tar.gz, VHAMON, 2017; MetaCPAN )
Armadito-Agent/lib/Armadito/Agent/Task/AVConfig.pm ( view source; MetaCPAN )
Armadito::Agent::Task::AVConfig;

use strict;
use warnings;
use base 'Armadito::Agent::Task';
use JSON;
use Data::Dumper;

sub new {
	my ( $class, %params ) = @_;

	my $self = $class->SUPER::new(%para
se ) = @_;

	$self->{logger}->info( "Error Response : " . $response->content() );
	my $obj = from_json( $response->content(), { utf8 => 1 } );
	$self->{logger}->error( Dumper($obj) );

	return $self;
 $json_text = to_json( $self->{jobj} );
	$self->{logger}->debug($json_text);

	my $response = $self->{glpi_client}->sendRequest(
		"url"   => $self->{glpi_url} . "/api/avconfigs",
		message => $json_t
Armadito-Agent ( V/VH/VHAMON/Armadito-Agent-0.10.1.tar.gz, VHAMON, 2017; MetaCPAN )
Armadito-Agent/lib/Armadito/Agent/Task/Scheduler.pm ( view source; MetaCPAN )
 strict;
use warnings;
use base 'Armadito::Agent::Task';

use MIME::Base64;
use Data::Dumper;
use JSON;

sub new {
	my ( $class, %params ) = @_;

	my $self = $class->SUPER::new(%params);

	if ( $param
se ) = @_;

	$self->{logger}->info( "Error Response : " . $response->content() );
	my $obj = from_json( $response->content(), { utf8 => 1 } );
	$self->{logger}->error( Dumper($obj) );

	return $self;
fos;
	my $json_text = to_json( $self->{jobj} );

	my $response = $self->{glpi_client}->sendRequest(
		"url"   => $self->{agent}->{config}->{server}[0] . "/api/schedulers",
		message => $json_text,
		m
Armadito-Agent ( V/VH/VHAMON/Armadito-Agent-0.10.1.tar.gz, VHAMON, 2017; MetaCPAN )
Armadito-Agent/lib/Armadito/Agent/Task/Enrollment.pm ( view source; MetaCPAN )
e 'Armadito::Agent::Task';
use Armadito::Agent::Tools::File qw( readFile );
use Data::Dumper;
use JSON;

sub new {
	my ( $class, %params ) = @_;

	my $self = $class->SUPER::new(%params);

	if ( $param


	$self = $self->SUPER::run(%params);

	$self->_setEnrollmentKey();

	my $json_text = to_json( $self->{jobj} );
	print $json_text. "\n";

	my $response = $self->{glpi_client}->sendRequest(
		"url"   
 : " . $response->content() . "\n" );
	if ( $response->content() =~ /^\s*\{/ ) {
		my $obj = from_json( $response->content(), { utf8 => 1 } );
		$self->{logger}->error( $obj->{message} );
	}
	return $
Armadito-Agent ( V/VH/VHAMON/Armadito-Agent-0.10.1.tar.gz, VHAMON, 2017; MetaCPAN )
Armadito-Agent/lib/Armadito/Agent/Task/Runjobs.pm ( view source; MetaCPAN )
ent::Task';

use Armadito::Agent::Storage;
use Data::Dumper;
use MIME::Base64;
use Try::Tiny;
use JSON;

sub new {
	my ( $class, %params ) = @_;

	my $self = $class->SUPER::new(%params);

	if ( $param
se ) = @_;

	$self->{logger}->info( "Error Response : " . $response->content() );
	my $obj = from_json( $response->content(), { utf8 => 1 } );
	$self->{logger}->error( Dumper($obj) );

	return $self;
 = @_;

	my $json_text = to_json( $self->{jobj} );

	my $response = $self->{glpi_client}->sendRequest(
		"url"   => $self->{agent}->{config}->{server}[0] . "/api/jobs",
		message => $json_text,
		meth
Armadito-Agent ( V/VH/VHAMON/Armadito-Agent-0.10.1.tar.gz, VHAMON, 2017; MetaCPAN )
Armadito-Agent/lib/Armadito/Agent/Task/Scan.pm ( view source; MetaCPAN )
 strict;
use warnings;
use base 'Armadito::Agent::Task';

use MIME::Base64;
use Data::Dumper;
use JSON;

sub new {
	my ( $class, %params ) = @_;

	my $self = $class->SUPER::new(%params);

	if ( $param
se ) = @_;

	$self->{logger}->info( "Error Response : " . $response->content() );
	my $obj = from_json( $response->content(), { utf8 => 1 } );
	$self->{logger}->error( Dumper($obj) );

	return $self;
esults;
	my $json_text = to_json( $self->{jobj} );

	my $response = $self->{glpi_client}->sendRequest(
		"url"   => $self->{agent}->{config}->{server}[0] . "/api/scans",
		message => $json_text,
		met
Armadito-Agent ( V/VH/VHAMON/Armadito-Agent-0.10.1.tar.gz, VHAMON, 2017; MetaCPAN )
Armadito-Agent/lib/Armadito/Agent/Antivirus/Armadito.pm ( view source; MetaCPAN )
rmadito module. Set task's default logger.

=head2 getJobj ( $self )

Return unblessed object for json ecnapsulation.

=head2 getVersion ( $self )

Return Antivirus Version by using RESTful API /versi
QBit-Application-Model-DBManager-Users ( M/MA/MADSKILL/QBit-Application-Model-DBManager-Users-0.007.tar.gz, MADSKILL, 2017; MetaCPAN )
QBit-Application-Model-DBManager-Users/lib/QBit/Application/Model/DBManager/Users.pm ( view source; MetaCPAN )
a_fields = $self->db->users_extra_fields->get_all(
            fields => [qw(user_id key value is_json)],
            filter => {user_id => array_uniq(map {$_->{'id'}} @$result)}
        );

        f
ields->{'__EXTRA_FIELDS__'}{$rec->{'user_id'}}{$rec->{'key'}}},
                $rec->{'is_json'} ? from_json($rec->{'value'}) : $rec->{'value'}
            );
        }
    }
}

sub add {
    my ($se
ta,
                        map {{user_id => $id, key => $key, value => $_->{'value'}, is_json => $_->{'is_json'}}}
                          @{$extra_fields->{$key}});
                }

            
Armadito-Agent ( V/VH/VHAMON/Armadito-Agent-0.10.1.tar.gz, VHAMON, 2017; MetaCPAN )
Armadito-Agent/lib/Armadito/Agent/Antivirus/Kaspersky.pm ( view source; MetaCPAN )
anciate module. Set task's default logger.

=head2 getJobj ( $self )

Return unblessed object for json encapsulation.

=head2 getVersion ( $self )

Return Antivirus' Version.

=head2 getProgramPath ( 
Armadito-Agent ( V/VH/VHAMON/Armadito-Agent-0.10.1.tar.gz, VHAMON, 2017; MetaCPAN )
Armadito-Agent/lib/Armadito/Agent/Antivirus/Eset.pm ( view source; MetaCPAN )
anciate module. Set task's default logger.

=head2 getJobj ( $self )

Return unblessed object for json encapsulation.

=head2 getVersion ( $self )

Return Antivirus' Version.

=head2 getScanCliPath ( 
Armadito-Agent ( V/VH/VHAMON/Armadito-Agent-0.10.1.tar.gz, VHAMON, 2017; MetaCPAN )
Armadito-Agent/lib/Armadito/Agent/Antivirus/Armadito/Task/State.pm ( view source; MetaCPAN )
:Task:State>. Ask for Armadito Antivirus state using AV's API REST protocol and then send it in a json formatted POST request to Armadito plugin for GLPI.

=head1 FUNCTIONS

=head2 run ( $self, %param
Armadito-Agent ( V/VH/VHAMON/Armadito-Agent-0.10.1.tar.gz, VHAMON, 2017; MetaCPAN )
Armadito-Agent/lib/Armadito/Agent/Antivirus/Armadito/Task/Alerts.pm ( view source; MetaCPAN )
ask inherits from L<Armadito::Agent::Task:Alerts>. Get Armadito Antivirus alerts and send them as json messages to armadito glpi plugin.

=head1 FUNCTIONS

=head2 run ( $self, %params )

Run the task.
WebService-Reddit ( O/OA/OALDERS/WebService-Reddit-0.000003.tar.gz, OALDERS, 2017; MetaCPAN )
WebService-Reddit/lib/WebService/Reddit/Response.pm ( view source; MetaCPAN )
:Reddit::Response;
$WebService::Reddit::Response::VERSION = '0.000003';
use Moo;

use JSON::MaybeXS qw( decode_json );
use Types::Standard qw( Bool InstanceOf Maybe HashRef );

has content => (
    is
my $self    = shift;
    my $content = $self->raw->decoded_content;

    return $content ? decode_json($content) : undef;
}

sub _build_success {
    my $self = shift;
    return $self->raw->is_succes
item raw

An L<HTTP::Response> object.

=back

=head1 METHODS

=head2 content

This is the parsed JSON body of the response.  Generally this will be a C<HashRef>.

=head2 raw

Returns the raw L<HTTP::
WWW-Deezer ( K/KA/KABANOID/WWW-Deezer-0.03.tar.gz, KABANOID, 2017; MetaCPAN )
WWW-Deezer/lib/WWW/Deezer/Artist.pm ( view source; MetaCPAN )
a => 'Int';
has 'nb_fan', is => 'rw', isa => 'Int';

has 'radio' => (
    is => 'ro',
    isa => 'JSONBoolean',
    coerce => 1
);

around BUILDARGS => sub { # allow create Artist object with single a
      $self = WWW::Deezer->new->artist($_[0]);
    }
    else {
        # 2DO: deal with Bool and JSON::XS::Boolean=\1 in 'radio' argument
        $self = $class->$orig(@_);
    }
    return $self;
};
Swagger2 ( A/AS/ASHIMEMA/Swagger2-0.89.tar.gz, ASHIMEMA, 2017; MetaCPAN )
Swagger2/lib/Swagger2/POD.pm ( view source; MetaCPAN )
package Swagger2::POD;
use Mojo::Base -base;
use Mojo::JSON 'encode_json';
use Mojo::Message::Response;
use Scalar::Util 'blessed';
use constant NO_DESCRIPTION => 'No description.';

require Swagger2;
obj->{$k} and $obj->{$k} eq Mojo::JSON->true;
  return "$k=false" if blessed $obj->{$k} and $obj->{$k} eq Mojo::JSON->false;
  return sprintf '%s=%s', $k, encode_json $obj->{$k} if ref $obj->{$k};
  r
Chess-PGN-EPD ( H/HS/HSMYERS/Chess-PGN-EPD-0.34.tar.gz, HSMYERS, 2017; MetaCPAN )
Chess-PGN-EPD/lib/Chess/PGN/EPD.pm ( view source; MetaCPAN )
Moves;
use File::ShareDir qw(dist_file);
use File::Slurper qw(read_text);
use Cpanel::JSON::XS qw(decode_json);

require Exporter;

my ( $hECO, $hNIC, $hOpening );
my %hash = (
    ECO     =>
 _GetPaths('Chess-PGN-EPD');

$hECO     = decode_json read_text($ECO_path);
$hNIC     = decode_json read_text($NIC_path);
$hOpening = decode_json read_text($Opening_path);

sub _GetPaths {
    
on three database files installed along with
the module. On demand other formats (the current is JSON) may be implemented. The 'ToDo' list
also mentions the possibility of extending the databases, a

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