Group
Extension

Matches 35358

GitHub-Apps-Auth ( M/MA/MACOPY/GitHub-Apps-Auth-0.04.tar.gz, MACOPY, 2019; MetaCPAN )
GitHub-Apps-Auth/lib/GitHub/Apps/Auth.pm ( view source; MetaCPAN )
y app_id/],
);

use Carp;
use Crypt::PK::RSA;
use Crypt::JWT qw/encode_jwt/;
use Furl;
use JSON qw/decode_json/;
use Time::Moment;

sub _lazy(&) {
    return GitHub::Apps::Auth::Lazy->new($_[0]);
}

u
 {
        croak "fail to fetch installations: ". $resp->content;
    }

    my $content = decode_json $resp->content;
    my %ids_by_account = map { $_->{account}{login} => $_->{id} } @$content;
    
 Authorization => 'Bearer ' . $jwt,
        Accept => "application/vnd.github.machine-man-preview+json",
    ];
}

sub _fetch_access_token {
    my $self = shift;

    my $installation_id = $self->ins
Class-Simple ( S/SU/SULLIVAN/Class-Simple-1.1.tar.gz, SULLIVAN, 2019; MetaCPAN )
Class-Simple/lib/Class/Simple.pm ( view source; MetaCPAN )
);
}



##
##	toJson() and fromJson() are DUMP and SLURP equivalents for JSON.
##	I'm not sure if they're all that useful yet so they're silently
##	lurking here for now.
##
#sub toJson
#{
#my $self =

#	croak("Cannot use toJson(): module JSON::XS not found.\n")
#	  unless (eval 'require JSON::XS; 1');
#
#	my $ref = refaddr($self);
#	my $json = JSON::XS->new();
#	return $json->encode($STORAGE{$ref}
ess $str;
#
#	croak("Cannot use fromJson(): module JSON::XS not found.\n")
#	  unless (eval 'require JSON::XS; 1');
#
#	my $json = JSON::XS->new();
#	my $obj = $json->decode($str);
#	my $ref = refaddr
Transmission-Client ( O/OL/OLOF/Transmission-Client-0.0806.tar.gz, OLOF, 2019; MetaCPAN )
Transmission-Client/lib/Transmission/Types.pm ( view source; MetaCPAN )
l';
use B;

# If Perl thinks a value is a string, JSON will encode it as such. But
# Transmission is picky about how parameters are encoded in the JSON
# request, so we make sure Perl knows how to sto
Mojo-Zabbix ( O/OR/ORANGE/Mojo-Zabbix-0.14.tar.gz, ORANGE, 2019; MetaCPAN )
Mojo-Zabbix/lib/Mojo/Zabbix.pm ( view source; MetaCPAN )
assword    => $args->{password},
        _call_start => 0,
    }, $class;

    # init json object
    $self->_json;

    # init useragent
    $self->ua;

    # authenticate
    $self->auth;
    return
 return $self->{UserAgent};
}

sub _json {
    my $self = shift;

    unless ( defined $self->{JSON} ) {
        $self->{JSON} = JSON::PP->new;
        $self->{JSON}->ascii->pretty->allow_nonref->allo
w_blessed
          ->allow_bignum;
    }
    return $self->{JSON};
}

sub trace {
    my $self = shift;

    $self->{Trace} = $_[0]
      if (@_);

    return $self->{Trace};
}

sub debug {
    my $s
Transmission-Client ( O/OL/OLOF/Transmission-Client-0.0806.tar.gz, OLOF, 2019; MetaCPAN )
Transmission-Client/lib/Transmission/Client.pm ( view source; MetaCPAN )
sion::Torrent>
L<Transmission::Utils>

=cut

use Moose;
use DateTime;
use DateTime::Duration;
use JSON::MaybeXS;
use LWP::UserAgent;
use MIME::Base64;
use Transmission::Torrent;
use Transmission::Sess
UG'};

our $VERSION = '0.0806';
our $SESSION_ID_HEADER_NAME = 'X-Transmission-Session-Id';
my $JSON = JSON::MaybeXS->new;

with 'Transmission::AttributeRole';

=head1 ATTRIBUTES

=head2 url

 $str = $
        $id += 0 if($id =~ /^\d+$/);
        }
    }

    $tag  = int rand 2*16 - 1;
    $post = $JSON->encode({
                method    => $method,
                tag       => $tag,
              
PONAPI-Client ( M/MI/MICKEY/PONAPI-Client-0.002012.tar.gz, MICKEY, 2019; MetaCPAN )
PONAPI-Client/lib/PONAPI/Client/Request.pm ( view source; MetaCPAN )
# ABSTRACT: request class
package PONAPI::Client::Request;

use Moose::Role;

use JSON::MaybeXS qw< encode_json >;

use PONAPI::Utils::URI qw< to_uri >;

requires 'method';
requires 'path';

has 'uri_
lf->_build_query_string )
            : ( $self->can('data')
                  ? ( body => encode_json( { data => $self->data } ) )
                  : ()
              )
        )
    );
}

sub _buil
Test-TraceCalls ( T/TO/TOBYINK/Test-TraceCalls-0.001.tar.gz, TOBYINK, 2019; MetaCPAN )
Test-TraceCalls/lib/Test/TraceCalls.pm ( view source; MetaCPAN )
mple ();
		use Carp ();
		use File::Spec ();
		use FindBin ();
		use Hook::AfterRuntime ();
		use JSON::PP ();
		use Sub::Util 1.40 ();
		1;
	} || die($@) if ACTIVE;
};

our %CALL;

sub import {
	my $
};
	*{"$package\::$sub"} = $newcode;
}

END {
	if (ACTIVE) {
		my $JSON = 'JSON::PP'->new->pretty(1)->canonical(1);
		my $map  = $JSON->encode(\%CALL);
		
		my $outfile = 'File::Spec'->catfile(
			$Fi
very file "t/foo.t" in your test suite, Test::TraceCalls will
generate "t/foo.t.map" containing a JSON summary of which subs got
called by that test file.

=head1 DESCRIPTION

Test::TraceCalls will tr
PONAPI-Client ( M/MI/MICKEY/PONAPI-Client-0.002012.tar.gz, MICKEY, 2019; MetaCPAN )
PONAPI-Client/lib/PONAPI/Client.pm ( view source; MetaCPAN )
# ABSTRACT: Client to a {JSON:API} service (http://jsonapi.org/) v1.0
package PONAPI::Client;

our $VERSION = '0.002012';

use Moose;

use JSON::MaybeXS qw( decode_json );

use PONAPI::Client::Request
der = (
        ( $args{body} ? ( 'Content-Type', 'application/vnd.api+json' ) : () ),
        'Accept', 'application/vnd.api+json'
    );

    my ($status, $content, $failed, $e);
    ($status, $cont
atus};

            $self->ua->after_request($res);

            $content = $res->{body} ? decode_json( $res->{body} ) : '';
            1;
        }
        or do {
            ($failed, $e) = (1, $@
App-PermuteNamed ( P/PE/PERLANCAR/App-PermuteNamed-0.004.tar.gz, PERLANCAR, 2019; MetaCPAN )
App-PermuteNamed/lib/App/PermuteNamed.pm ( view source; MetaCPAN )
prog]] bool,0,1 x,foo,bar,baz --format json-pretty --naked-res',
            src_plang => 'bash',
            summary => 'Like previous example, but outputs JSON',
        },
    ],
};
sub permute_nam
Dist-Zilla-Plugin-Data-Sah-Coerce ( P/PE/PERLANCAR/Dist-Zilla-Plugin-Data-Sah-Coerce-0.001.tar.gz, PERLANCAR, 2019; MetaCPAN )
Dist-Zilla-Plugin-Data-Sah-Coerce/lib/Dist/Zilla/Plugin/Data/Sah/Coerce.pm ( view source; MetaCPAN )
    $pkg->meta;
}

# dzil also wants to get abstract for main module to put in dist's
# META.{yml,json}
sub before_build {
    my $self  = shift;
    my $name  = $self->zilla->name;
    my $class = $n
Cisco-ACI ( P/PI/PINGAN/Cisco-ACI-0.151.tar.gz, PINGAN, 2019; MetaCPAN )
Cisco-ACI/lib/Cisco/ACI.pm ( view source; MetaCPAN )
package Cisco::ACI;

use strict;
use warnings;

use Carp;
use JSON;
use HTTP::Request;
use LWP;
use XML::Simple;
use Cisco::ACI::Rule;
use Cisco::ACI::FvcapRule;
use Cisco::ACI::FvAEPg;
use Cisco::ACI
f = shift;

	my $json = { aaaUser => { attributes => { name => $self->{ username }, pwd => $self->{ password } } } };

	my $r = $self->__request( $self->__get_login_uri, to_json( $json ) );

	return i
f $self->{ error };

	$r = from_json( $r->content );

	if ( defined $r->{ imdata } ) {
		for my $a ( @LOGIN_ATTR ) {
			$self->{ $a } = $r->{ imdata }->[0]->{ aaaLogin }->{ attributes }->{ $a }
		}
	}
App-CrossPericmd ( P/PE/PERLANCAR/App-CrossPericmd-0.003.tar.gz, PERLANCAR, 2019; MetaCPAN )
App-CrossPericmd/lib/App/CrossPericmd.pm ( view source; MetaCPAN )
,3 4,5 --json',
            src_plang => 'bash',
            summary => 'Same as previous example, but output JSON',
        },
        {
            src => '[[prog]] 1,2 foo,bar --format json-pretty 
JSV-Compiler ( A/AN/ANTONPETR/JSV-Compiler-0.07.tar.gz, ANTONPETR, 2019; MetaCPAN )
JSV-Compiler/lib/JSV/Compiler.pm ( view source; MetaCPAN )
package JSV::Compiler;
use strict;
use warnings;
use JSON;
use JSON::Pointer;
use URI;
use Path::Tiny;
use Carp;
use Storable 'dclone';
use Data::Dumper;
use Regexp::Common('RE_ALL', 'Email::Address',
  } elsif ($file =~ /\.json/i) {
            $self->{original_schema} = decode_json(path($file)->slurp_raw);
        } else {
            croak "Unknown file type: must be .json or .yaml";
        }
 
$uri->clone;
        $su->fragment("");
        if ($self->{schemas}{$su}) {
            my $rs = JSON::Pointer->get($self->{schemas}{$su}, $uri->fragment);
            return $rs if $rs;
        }
  
Siffra-Tools ( L/LU/LUIZBENE/Siffra-Tools-0.27.tar.gz, LUIZBENE, 2019; MetaCPAN )
Siffra-Tools/lib/Siffra/Tools.pm ( view source; MetaCPAN )
meters ) = @_;
    $self->SUPER::_initialize( %parameters );

    eval { require JSON::XS; };
    $self->{ json } = JSON::XS->new->utf8;
} ## end sub _initialize

sub _finalize()
{
    $log->debug( "_
Mojolicious-Plugin-ReplyTime ( S/SA/SADAMS/Mojolicious-Plugin-ReplyTime-0.02.tar.gz, SADAMS, 2019; MetaCPAN )
Mojolicious-Plugin-ReplyTime/lib/Mojolicious/Plugin/ReplyTime.pm ( view source; MetaCPAN )
('reply.time' => sub {
    shift->respond_to(
      html => {text => scalar localtime},
      json => {json => {time => scalar localtime}},
    );
  });
  $app->routes->get('/replytime')->to(cb => sub
 that adds a
reply helper named "time" to the Mojolicious controller object. It will
respond to a JSON request with '{"time":"[scalar localtime]"}' and any other
request with a plain text response of 
Mail-Milter-Authentication-Handler-ARC ( M/MB/MBRADSHAW/Mail-Milter-Authentication-Handler-ARC-2.20191205.tar.gz, MBRADSHAW, 2019; MetaCPAN )
Mail-Milter-Authentication-Handler-ARC/lib/Mail/Milter/Authentication/Handler/ARC.pm ( view source; MetaCPAN )
> 0,
    };
}

sub grafana_rows {
    my ( $self ) = @_;
    my @rows;
    push @rows, $self->get_json( 'ARC_metrics' );
    return \@rows;
}

sub register_metrics {
    return {
        'arc_total' =
RPi-WiringPi ( S/ST/STEVEB/RPi-WiringPi-2.3633_03.tar.gz, STEVEB, 2019; MetaCPAN )
RPi-WiringPi/build_testing/shared_data.pl ( view source; MetaCPAN )
use warnings;
use strict;

use Data::Dumper;
use IPC::ShareLite;
use JSON::XS;

my $s = IPC::ShareLite->new(
    -key     => 1235,
    -create  => 1,
    -destroy => 0,
) or die "can't create share: $
Rarbg-torrentapi ( P/PA/PACOEB/Rarbg-torrentapi-v0.2.0.tar.gz, PACOEB, 2019; MetaCPAN )
Rarbg-torrentapi/lib/Rarbg/torrentapi.pm ( view source; MetaCPAN )
e Rarbg::torrentapi;

use strict;
use 5.008_005;
our $VERSION = 'v0.2.0';
use LWP::UserAgent;
use JSON;
use Carp;
use Rarbg::torrentapi::Res;
use Rarbg::torrentapi::Error;
use Moose;

our $BASEURL = '
Rarbg-torrentapi'
);

has _format => (
    is      => 'ro',
    isa     => 'Str',
    default => 'json_extended'
);

has _ua => (
    is      => 'ro',
    default => sub {
        LWP::UserAgent->new(
" . $self->app_id;
    my $res_json = $self->_ua->get($url);
    if ( $res_json->is_success ) {
        $self->_token_time(time);
        my $res = decode_json( $res_json->decoded_content );
        r
RPi-WiringPi ( S/ST/STEVEB/RPi-WiringPi-2.3633_03.tar.gz, STEVEB, 2019; MetaCPAN )
RPi-WiringPi/build_testing/alt_mode.pl ( view source; MetaCPAN )
Dumper;
use JSON;
use RPi::WiringPi;
use RPi::Const qw(:all);
use WiringPi::API qw(:perl);

my $pi = RPi::WiringPi->new;

my $pin_num = 2;

my $j = $ENV{RPI_PINS};

my $p = $j ? decode_json $j : {};


    die "pin in use...\n";
}

$p->{$pin_num}{alt} = $pi->get_alt($pin_num);
$p->{$pin_num}{state} = $pi->read_pin($pin_num);

print Dumper $p;

$j = encode_json $p;

say $j;

$ENV{RPI_PINS} = $j;



Zeek-Log-Parse ( J/JO/JOHANNA/Zeek-Log-Parse-0.08.tar.gz, JOHANNA, 2019; MetaCPAN )
Zeek-Log-Parse/README.pod ( view source; MetaCPAN )
ecurity Monitor|http://www.zeek.org>.

If the L<JSON> module is installed, this module can also be used to parse Zeek log
files that were written in JSON format.

=head1 Constructor

The base construc

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