Group
Extension

Matches 35358

Plack-Session-Store-Redis ( A/AK/AKZHAN/Plack-Session-Store-Redis-0.01.tar.gz, AKZHAN, 2017; MetaCPAN )
Plack-Session-Store-Redis/lib/Plack/Session/Store/Redis.pm ( view source; MetaCPAN )
nce;
    eval {
        require JSON::XS;
        $instance = JSON::XS->new->utf8->allow_nonref;
        1;
    } or do {
        require JSON;
        $instance = JSON->new->utf8->allow_nonref;
    }
Lemplate ( A/AG/AGENT/Lemplate-0.15.tar.gz, AGENT, 2017; MetaCPAN )
Lemplate/lib/Lemplate.pm ( view source; MetaCPAN )
-json=json2
    --runtime=standard

    --runtime=lite      Same as --ajax=none --json=none
    --runtime=jquery    Same as --ajax=jquery --json=none
    --runtime=yui       Same as --ajax=yui --json=
ajax=gregory --json=json2

    --json              By itself, equivalent to --json=json2
    --json=json2        Include http://www.json.org/json2.js for parsing/stringifying
    --json=yui          U
se YUI: YAHOO.lang.JSON (requires external YUI)
    --json=none         Doesn't provide any JSON functionality except a warning

    --ajax              By itself, equivalent to --ajax=xhr
    --ajax=
Module-CheckVersion ( P/PE/PERLANCAR/Module-CheckVersion-0.08.tar.gz, PERLANCAR, 2017; MetaCPAN )
Module-CheckVersion/lib/Module/CheckVersion/cpan.pm ( view source; MetaCPAN )
 DATE
our $VERSION = '0.08'; # VERSION

use 5.010;
use strict;
use warnings;

use HTTP::Tiny;
use JSON::MaybeXS;

sub check_latest_version {
    my ($mod, $installed_version, $chkres) = @_;

    my $r
$res->{reason}"] unless $res->{success};
    eval { $res = JSON::MaybeXS::decode_json($res->{content}) };
    return [500, "Can't decode JSON API response: $@"] if $@;
    return [500, "Error from API
WebService-Moodle-Simple ( I/IL/ILLY/WebService-Moodle-Simple-0.06.tar.gz, ILLY, 2017; MetaCPAN )
WebService-Moodle-Simple/lib/WebService/Moodle/Simple.pm ( view source; MetaCPAN )
uest;
use JSON;
use List::Util qw/first/;
use LWP::UserAgent;
use Moo;
use Ouch;
use URI;
use Sys::SigAction qw( timeout_call );


# ABSTRACT: API client for Stripe


my $REST_FORMAT = 'json';
# https
      my $req = HTTP::Request->new (GET => $dns_uri);
            $req->content_type('application/json');

            my $lwp = LWP::UserAgent->new;
            $lwp->timeout($timeout);
            $
s_uri->query_form( $params );

    my $res = $self->rest_call($dns_uri);

    my $response = from_json($res->content);

    unless (ref($response) eq 'ARRAY') {
        return { ok => 0, msg => $respo
CPANPLUS-Internals-Source-MetaCPAN ( B/BI/BINGOS/CPANPLUS-Internals-Source-MetaCPAN-0.10.tar.gz, BINGOS, 2017; MetaCPAN )
CPANPLUS-Internals-Source-MetaCPAN/lib/CPANPLUS/Internals/Source/MetaCPAN/Tie.pm ( view source; MetaCPAN )
   Class => 'CPANPLUS', Style => 'gettext';

use CPANPLUS::Internals::Source::MetaCPAN::HTTP;
use JSON::PP ();

require Tie::Hash;
use vars qw[@ISA];
push @ISA, 'Tie::StdHash';

sub TIEHASH {
    my $
urn unless $status eq '200';
      return unless $str = $http->body;
      eval { $href = JSON::PP::decode_json( $str ); };
      return unless $href and keys %$href;
    }

    ### expand author if n

          return unless $str = $http->body;
          my $dref;
          eval { $dref = JSON::PP::decode_json( $str ); };
          return unless $dref and keys %$dref;
          ( $href->{dist_file
Mojolicious-Command-generate-qx_mojo_app ( O/OE/OETIKER/Mojolicious-Command-generate-qx_mojo_app-0.4.0.tar.gz, OETIKER, 2017; MetaCPAN )
Mojolicious-Command-generate-qx_mojo_app/lib/Mojolicious/Command/generate/qx_mojo_app.pm ( view source; MetaCPAN )
 => 'frontend/Makefile.am',
        'frontend/Manifest.json' => 'frontend/Manifest.json',
        'frontend/config.json' => 'frontend/config.json',
        'frontend/source/class/app/Application.js' =
MetaCPAN-API ( H/HA/HAARG/MetaCPAN-API-0.51.tar.gz, HAARG, 2017; MetaCPAN )
MetaCPAN-API/lib/MetaCPAN/API.pm ( view source; MetaCPAN )
se Moo;
use Types::Standard qw<Str ArrayRef InstanceOf>;
use namespace::autoclean;

use Carp;
use JSON::MaybeXS 1.001000;
use Try::Tiny;
use HTTP::Tiny 0.014;

with qw/
    MetaCPAN::API::Author
    M
AN::API::VERSION || 'xx';
        return [ agent => "MetaCPAN::API/$version" ];
    },
);

my $JSON = JSON::MaybeXS->new(canonical => 1, utf8 => 1);

sub _build_ua {
    my $self = shift;
    return H
my $query_json = $JSON->encode( $query );
    my $result     = $self->ua->request(
        'POST',
        "$base/$url",
        {
            headers => { 'Content-Type' => 'application/json' },
    
Perinci-CmdLine-Easy ( P/PE/PERLANCAR/Perinci-CmdLine-Easy-1.18.tar.gz, PERLANCAR, 2017; MetaCPAN )
Perinci-CmdLine-Easy/lib/Perinci/CmdLine/Easy.pm ( view source; MetaCPAN )
7-06-09.

=head1 SYNOPSIS

In your command-line script (e.g. named list-cpan-dists):

 use JSON qw(decode_json);
 use LWP::Simple;
 use Perinci::CmdLine::Easy qw(run_cmdline_app);
 run_cmdline_app(
  
status:latest&fields=name&size=5000"
             or die "Can't query MetaCPAN";
         $res = $json->decode($res);
         die "MetaCPAN timed out\n" if $res->{timed_out};
         my @dists;
    
Log-Log4perl-Appender-Graylog ( D/DI/DIMENTOX/Log-Log4perl-Appender-Graylog-1.7.tar.gz, DIMENTOX, 2017; MetaCPAN )
Log-Log4perl-Appender-Graylog/scripts/log.pl ( view source; MetaCPAN )
r" perl scripts/log.pl
use strict;
use warnings;
use Curses::UI;

use Data::Dumper;
use JSON::Tiny qw(encode_json);
use Data::Faker;

use Log::Log4perl;



use Log::Log4perl::DataDumper;
use Log::Log4
thods)
      {
       $data{$_} = $faker->$_();
       }
      
    my $l = {};
    $l->{'json'}  = encode_json(\%data);
    $l->{'dumper'} = Dumper(%data);
    $l->{raw} = \%data;
    $log->debug($l)
WebService-Google-Reader ( G/GR/GRAY/WebService-Google-Reader-0.24.tar.gz, GRAY, 2017; MetaCPAN )
WebService-Google-Reader/lib/WebService/Google/Reader.pm ( view source; MetaCPAN )
se warnings;

use Carp qw(croak);
use HTTP::Request::Common qw(GET POST);
use LWP::UserAgent;
use JSON::MaybeXS;
use URI;
use URI::Escape;
use URI::QueryParam;

use WebService::Google::Reader::Constan
y, %fields, output => 'json' });

    my $req = HTTP::Request->new(GET => $uri);
    my $res = $self->_request($req) or return;

    my @ids = do {
        my $ref = eval { JSON->new->decode($res->dec
oded_content) } or do {
            $self->error("Failed to parse JSON response: $@");
            return;
        };
        map { $_->{id} } @{$ref->{results}};
    };
    return unless @ids;
    if
Log-Log4perl-Appender-Graylog ( D/DI/DIMENTOX/Log-Log4perl-Appender-Graylog-1.7.tar.gz, DIMENTOX, 2017; MetaCPAN )
Log-Log4perl-Appender-Graylog/lib/Data/DTO/GELF.pm ( view source; MetaCPAN )
ur $VERSION = 1.7;
use strict;
use warnings;

use Moose;
use namespace::autoclean;

use JSON::Tiny qw(encode_json);
use Sys::Hostname;
use Data::UUID;
use POSIX qw(strftime);

use Log::Log4perl;

use 
;
    { $self->short_message() }    #fire off lazy message builder
    return {%$self};
}

sub TO_JSON {
    my $self = shift;
    { $self->short_message() }    #fire off lazy message builder
    retu
BlankOnDev ( Y/YU/YUSRIDEB/BlankOnDev-0.1005.tar.gz, YUSRIDEB, 2017; MetaCPAN )
BlankOnDev/lib/BlankOnDev/config.pm ( view source; MetaCPAN )
v::config;
use strict;
use warnings FATAL => 'all';

# Import Module :
use Data::Dumper;
use JSON;
use JSON::XS;
use UNIVERSAL::ref;
use Hash::MultiValue;
use Term::ReadKey;
use GnuPG qw( :algo );
use
        my $data_cfg = decode_json($get_cfg);
            $data = $data_cfg;
        } else {
            BlankOnDev::Utils::file->create($file_name, $dir_dev, encode_json($format_config));
          
e {
        mkdir($dir_dev);
        BlankOnDev::Utils::file->create($file_name, $dir_dev, encode_json($format_config));
        $data = $format_config;
    }

    $gencfg = $data;
}
# Subroutine for 
Test-DB-Shared ( J/JE/JETEVE/Test-DB-Shared-0.004.tar.gz, JETEVE, 2017; MetaCPAN )
Test-DB-Shared/lib/Test/DB/Shared/mysqld.pm ( view source; MetaCPAN )
Or

  prove -PTest::DB::Shared::mysqld=./testmysqld.json

The ./testmysqld.json file can contain the arguments to Test::DB::Shared::mysqld in a json format (see SYNOPSIS). They
will be used to build o
tate.

=head1 METHODS

=cut

use Moo;
use Carp qw/confess/;
use Log::Any qw/$log/;

use DBI;

use JSON;
use Test::mysqld;

use File::Slurp;
use File::Spec;
use File::Flock::Tiny;

use POSIX qw(SIGTERM
nfess("Cannot find config file $config_file");
            }else{
                $config = JSON::decode_json( scalar( File::Slurp::read_file( $config_file, { binmode => ':raw' } ) ) );
            }
Pod-Minicpandoc ( R/RH/RHOELZ/Pod-Minicpandoc-0.16.tar.gz, RHOELZ, 2017; MetaCPAN )
Pod-Minicpandoc/lib/Pod/Minicpandoc.pm ( view source; MetaCPAN )
se JSON::PP ();

our $VERSION = '0.16';

sub opt_c { shift->_elem('opt_c', @_) }

sub live_cpan_url {
    my $self   = shift;
    my $module = shift;

    if ($self->opt_c) {
        my $module_json =
ibution");
        if (!$module_json) {
            die "Unable to fetch changes for $module";
        }
        my $module_details = JSON::PP::decode_json($module_json);
        my $dist = $module_de
e);
    my $content = $self->fetch_url($url);

    if ($self->opt_c) {
        $content = JSON::PP::decode_json($content)->{content};
        $content = "=pod\n\n$content";
    }

    return $content;
Acme-Globus ( J/JA/JACOBY/Acme-Globus-0.001.tar.gz, JACOBY, 2017; MetaCPAN )
Acme-Globus/lib/Acme/Globus.pm ( view source; MetaCPAN )
 Interface to the Globus research data sharing service

use strict;
use warnings;

use Carp ;
use JSON ;
use Net::OpenSSH ;

=pod

=head1 NAME

Globus - Object-Oriented interface to Globus

=head1 DES
f->{username}, $self->{key_path} ) ;
    return {} unless $result =~ m{\w} ;
    my $obj = decode_json $result ;
    return wantarray ? %$obj : $obj ;
    }

sub acl_add {
    my ( $self, $endpoint, $
      = _globus_action( $command, $self->{username}, $self->{key_path} ) ;
    my $slist = decode_json $result ;
    my @list = grep { $_->{permissions} ne 'rw' } @$slist ;
    return wantarray ? @lis
OpusVL-SysParams ( A/AL/ALTREUS/OpusVL-SysParams-0.20.tar.gz, ALTREUS, 2017; MetaCPAN )
OpusVL-SysParams/lib/OpusVL/SysParams/Schema/Result/SysInfo.pm ( view source; MetaCPAN )
sInfo;

use strict;
use warnings;

use Moose;
use MooseX::NonMoose;
use namespace::autoclean;
use JSON;
use Data::Munge qw/elem/;
use Scalar::Util qw/reftype looks_like_number/;
extends 'DBIx::Class::
ame");

sub decoded_value
{
    my $self = shift;
    return if not defined $self->value;
	return JSON->new->allow_nonref->decode($self->value);
}

sub viable_type_conversions {
    my $self = shift;
f->decoded_value;

    if (ref $value) {
        if (ref $value =~ /Bool/) {
            # JSON::Boolean, JSON::PP::Boolean, etc
            $self->data_type('bool')
        }
        elsif (reftype $
BlankOnDev ( Y/YU/YUSRIDEB/BlankOnDev-0.1005.tar.gz, YUSRIDEB, 2017; MetaCPAN )
BlankOnDev/lib/BlankOnDev/config/save.pm ( view source; MetaCPAN )
package BlankOnDev::config::save;
use strict;
use warnings FATAL => 'all';

# Import Module :
use JSON::XS;
use BlankOnDev::Utils::file;

# Version :
our $VERSION = '0.1005';

# Subroutine save key co
-
sub save_to_file {
    my ($self, $filename, $dir_dev, $data) = @_;

    my $data_file = encode_json($data);
    my $create_file = BlankOnDev::Utils::file->create($filename, $dir_dev, $data_file);

BlankOnDev ( Y/YU/YUSRIDEB/BlankOnDev-0.1005.tar.gz, YUSRIDEB, 2017; MetaCPAN )
BlankOnDev/lib/BlankOnDev/Tutorial/id.pod ( view source; MetaCPAN )
i.

    sudo cpan -i Crypt::Blowfish Digest::MD5
    sudo cpan -i MIME::Base64 MIME::Base64::Perl JSON DateTime
    sudo cpan -i GnuPG Hash::MultiValue Term::ReadKey LWP::UserAgent
    sudo cpan -i Te
App-Aliyun ( F/FA/FAYLAND/App-Aliyun-0.02.tar.gz, FAYLAND, 2017; MetaCPAN )
App-Aliyun/lib/MojoX/Aliyun.pm ( view source; MetaCPAN )
   my %auth_params = (
        Timestamp => sprintf("%s", DateTime->now()),
        Format    => 'JSON',
        Version   => $Version,
        SignatureMethod  => 'HMAC-SHA1',
        SignatureVersio
\%auth_params );
    $tx = $self->ua->start($tx);

    return $tx->res->json if ($tx->res->headers->content_type || '') =~ /json/;

    my $err = $tx->error;
    croak "$err->{code} response: $err->{m
Mojolicious-Command-generate-qx_mojo_app ( O/OE/OETIKER/Mojolicious-Command-generate-qx_mojo_app-0.4.0.tar.gz, OETIKER, 2017; MetaCPAN )
Mojolicious-Command-generate-qx_mojo_app/lib/Mojolicious/Command/generate/qx_mojo_app/t/basic.t ( view source; MetaCPAN )
est::Mojo->new('<%= $p->{class} %>');

$t->post_ok('/jsonrpc','{"id":1,"service":"<%= $p->{name} %>","method":"ping","params":["hello"]}')
  ->json_is('',{id=>1,result=>'got hello'},'post request');


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