Group
Extension

Matches 35358

Paludis-ResumeState-Serialization ( K/KE/KENTNL/Paludis-ResumeState-Serialization-0.01000410.tar.gz, KENTNL, 2013; MetaCPAN )
Paludis-ResumeState-Serialization/maint-travis-ci/lib/tools.pm ( view source; MetaCPAN )
= cwd();
  chdir '/tmp/cpan-fixes';
  cpanm(@params);
  chdir $cwd;
}

sub parse_meta_json {
  $_[0] ||= 'META.json';
  require CPAN::Meta;
  return CPAN::Meta->load_file( $_[0] );
}

sub capture_stdo
ixes;
  $caller_stash->{cpanm_fix}          = *cpanm_fix;
  $caller_stash->{parse_meta_json}    = *parse_meta_json;
  $caller_stash->{capture_stdout}     = *capture_stdout;
  $caller_stash->{deploy_st
Plack-Middleware-Auth-BrowserID ( B/BO/BOLILA/Plack-Middleware-Auth-BrowserID-0.0.7.tar.gz, BOLILA, 2013; MetaCPAN )
Plack-Middleware-Auth-BrowserID/lib/Plack/Middleware/Auth/BrowserID.pm ( view source; MetaCPAN )
ce );
use Plack::Response;
use Plack::Session;

use LWP::Protocol::https;
use LWP::UserAgent;
use JSON;


sub prepare_app {
    my $self = shift;

    $self->audience or croak 'audience is not set';
}
>method eq 'POST' ) {
        my $uri  = 'https://verifier.login.persona.org/verify';
        my $json = {
            assertion => $req->body_parameters->{'assertion'},
            audience  => $self
T', $uri );
        $persona_req->header( 'Content-Type' => 'application/json' );
        $persona_req->content( to_json( $json, { utf8 => 1 } ) );

        my $ua = LWP::UserAgent->new( ssl_opts => {
Spica ( R/RY/RYMIZUKI/Spica-0.04.tar.gz, RYMIZUKI, 2013; MetaCPAN )
Spica/lib/Spica.pm ( view source; MetaCPAN )
',
    isa     => ParserClass,
    coerce  => 1,
    lazy    => 1,
    default => 'Spica::Parser::JSON',
);

# -------------------------------------------------------------------------
# auto build ar
arser> expects the name of the class that inherits C<Spica::Parser>.
By default, C<Spica::Parser::JSON> is used.

=item C<is_suppress_object_creation>

Specifies the receiver object creation mode. By 
TBX-XCS ( B/BY/BYUTRG/TBX-XCS-0.05.tar.gz, BYUTRG, 2013; MetaCPAN )
TBX-XCS/lib/TBX/XCS.pm ( view source; MetaCPAN )
e warnings;
use XML::Twig;
use feature 'say';
use JSON;
use Carp;
#carp from calling package, not from here
our @CARP_NOT = qw(TBX::XCS TBX::XCS::JSON);
use Data::Dumper;
our $VERSION = '0.05'; # VERS
Geo-Coder-OSM ( G/GR/GRAY/Geo-Coder-OSM-0.03.tar.gz, GRAY, 2013; MetaCPAN )
Geo-Coder-OSM/lib/Geo/Coder/OSM.pm ( view source; MetaCPAN )
package Geo::Coder::OSM;

use strict;
use warnings;

use Carp qw(croak);
use Encode ();
use JSON;
use LWP::UserAgent;
use URI;

our $VERSION = '0.03';
$VERSION = eval $VERSION;

our %SOURCES = (
    o
ch');
    $uri->query_form(
        q                 => $location,
        format            => 'json',
        addressdetails    => 1,
        'accept-language' => 'en',
        %params,
    );

   
      lat               => $lat,
        lon               => $lon,
        format            => 'json',
        addressdetails    => 1,
        'accept-language' => 'en',
        %params,
    );

   
Package-JSONable ( A/AG/AGORMAN/Package-JSONable-0.001.tar.gz, AGORMAN, 2013; MetaCPAN )
Package-JSONable/lib/Package/JSONable.pm ( view source; MetaCPAN )
# ABSTRACT: Add TO_JSON to your packages without the boilerplate
package Package::JSONable;
{
  $Package::JSONable::VERSION = '0.001';
}

use strict;
use warnings;
use Scalar::Util qw(reftype);
use Ca
qw(croak);
use List::MoreUtils qw(none);
use JSON ();

sub import {
    my ( $class, %import_opts ) = @_;

    my ( $target ) = caller;
    
    my $to_json = sub {
        my ( $self, %opts ) = @_;

if ( $value ) {
                    $hash{$method} = JSON::true;
                }
                else {
                    $hash{$method} = JSON::false;
                }
            }
        }

 
Net-HTTP-Spore-Middleware-DefaultParams ( W/WE/WEBORAMA/Net-HTTP-Spore-Middleware-DefaultParams-0.04.tar.gz, WEBORAMA, 2013; MetaCPAN )
Net-HTTP-Spore-Middleware-DefaultParams/lib/Net/HTTP/Spore/Middleware/DefaultParams.pm ( view source; MetaCPAN )
ad1 VERSION

version 0.04

=head1 SYNOPSIS

    my $client = Net::HTTP::Spore->new_from_spec('api.json'); 
    # foo=bar and blah=baz will be passed on each request. 
    $client->enable('DefaultParam
Amazon-SQS-ProducerConsumer ( N/NI/NICWOLFF/Amazon-SQS-ProducerConsumer-0.04.tar.gz, NICWOLFF, 2013; MetaCPAN )
Amazon-SQS-ProducerConsumer/lib/Amazon/SQS/Consumer.pm ( view source; MetaCPAN )
sumer;

use 5.006;
use strict;
use warnings;

use base 'Amazon::SQS::ProducerConsumer::Base';
use JSON::XS;
use Encode qw( encode_utf8 is_utf8 );

use constant {
	DEFAULT_N_MESSAGES => 10,
	DEFAULT_WA
tf8( $body ) if is_utf8( $body );
				$object = decode_json $body;
			};
			if ( $@ ) {
				say "left bad message in queue; could not decode JSON from $message->{Body}: $@";
			} else {
				return $ob
HTML-CallJS ( T/TO/TOKUHIROM/HTML-CallJS-0.02.tar.gz, TOKUHIROM, 2013; MetaCPAN )
HTML-CallJS/lib/HTML/CallJS.pm ( view source; MetaCPAN )
ct;
use warnings;

our $VERSION = "0.02";

use parent qw(Exporter);

use JSON::XS;

our @EXPORT = qw(call_js);

my $JSON = JSON::XS->new()->ascii(1)->allow_nonref();

my %_ESCAPE = (
    '+' => '\\u00
    my $json = $JSON->encode($data);
    $json =~ s!([&+<>])!$_ESCAPE{$1}!g;

    join('',
        q{<script class="call_js" type="text/javascript">},
        $func,
        '(',
        $json,
      
Paludis-ResumeState-Serialization ( K/KE/KENTNL/Paludis-ResumeState-Serialization-0.01000410.tar.gz, KENTNL, 2013; MetaCPAN )
Paludis-ResumeState-Serialization/maint-travis-ci/install_deps.pl ( view source; MetaCPAN )
  if ( env_true('AUTHOR_TESTING') or env_true('RELEASE_TESTING') ) {
    my $prereqs = parse_meta_json()->effective_prereqs;
    my $reqs = $prereqs->requirements_for( 'develop', 'requires' );
    my 
TBX-XCS ( B/BY/BYUTRG/TBX-XCS-0.05.tar.gz, BYUTRG, 2013; MetaCPAN )
TBX-XCS/bin/xcs2json.pl ( view source; MetaCPAN )
is
# PODNAME: xcs2json.pl
our $VERSION = '0.05'; # VERSION
# ABSTRACT: Print a JSON representation of the input XCS file
use TBX::XCS;
use TBX::XCS::JSON qw(json_from_xcs);
print json_from_xcs(TBX::XC
S->new(file => $ARGV[0]));

__END__

=pod

=head1 NAME

xcs2json.pl - Print a JSON representation of the input XCS file

=head1 VERSION

version 0.05

=head1 AUTHOR

Nathan Glenn <garfieldnate@gmail.c
Dezi-Stats ( K/KA/KARMAN/Dezi-Stats-0.001006.tar.gz, KARMAN, 2013; MetaCPAN )
Dezi-Stats/lib/Dezi/Stats/File.pm ( view source; MetaCPAN )
ts::File;

use warnings;
use strict;
use base 'Dezi::Stats';
use Carp;
use Log::Dispatchouli;
use JSON;

our $VERSION = '0.001006';

=head1 NAME

Dezi::Stats::File - store Dezi statistics via Log::Dis
ef> encoded as JSON to the dispatcher()->log method.

=cut

sub insert {
    my $self = shift;
    my $row = shift or croak "hashref required";
    $self->{dispatcher}->log( encode_json($row) );
    r
Told-Client ( P/PE/PETERSHAW/Told-Client/Told-Client-0.001.tar.gz, PETERSHAW, 2013; MetaCPAN )
Told-Client/lib/Told/Client.pm ( view source; MetaCPAN )
package Told::Client;

use 5.016002;
use strict;
use warnings;

use JSON;
use LWP;

require Exporter;

our @ISA = qw(Exporter);

our %EXPORT_TAGS = ( 'all' => [ qw(
	tell
    setDebug
    setConnectio
'} =~ /^test/){
            $result = encode_json(\%data);
    	} else {
        	$result = $browser->post($self->{'host'}."/log"
           		, encode_json \%data
	        );
	    }
    } elsif($self
Git-Megapull ( R/RJ/RJBS/Git-Megapull-0.101752.tar.gz, RJBS, 2013; MetaCPAN )
Git-Megapull/lib/Git/Megapull/Source/Github.pm ( view source; MetaCPAN )
 clone/update all your repositories from github.com

use LWP::UserAgent;
use Config::GitLike;
use JSON 2 ();


sub repo_uris {
  my $config_file = "$ENV{HOME}/.gitconfig";
  my $config = Config::GitLi
ig_file'\n";

  my $json = _get_json("http://github.com/api/v1/json/$login?login=$login&token=$token");

  my $data = eval { JSON->new->decode($json) };

  die "BAD JSON\n$@\n$json\n" unless $data;

 
t@github.com:%s/%s.git',
      $login,
      $repo->{name};
  }

  return \%repo_uri;
}

sub _get_json {
  my $url = shift;

  my $ua = LWP::UserAgent->new;
  $ua->env_proxy;

  my $response = $ua->ge
Convert-TBX-RNG ( B/BY/BYUTRG/Convert-TBX-RNG-0.04.tar.gz, BYUTRG, 2013; MetaCPAN )
Convert-TBX-RNG/bin/xcs2rng.pl ( view source; MetaCPAN )
se TBX::XCS;
use TBX::XCS::JSON qw(xcs_from_json);
use File::Slurp;

my $rng;
if($ARGV[0] eq '--json'){
    my $json = read_file($ARGV[1]);
    my $xcs = xcs_from_json($json);
    $rng = generate_rng(
nst the XCS constraints and the core TBX structure.

Passing C<--json> as the first argument will cause the script to expect
an XCS JSON file instead of an XML file.

=head1 AUTHOR

Nathan Glenn <garf
WWW-Tabela-Fipe ( H/HE/HERNAN/WWW-Tabela-Fipe-0.002.tar.gz, HERNAN, 2013; MetaCPAN )
WWW-Tabela-Fipe/lib/WWW/Tabela/FipeWrite.pm ( view source; MetaCPAN )
package WWW::Tabela::FipeWrite;
use JSON::XS;
use File::Slurp;
use Moo;

sub write {
    my ( $self, $veiculos ) = @_; 
    write_file( 'fipe.json', encode_json $veiculos );
}


1;
App-rhttp ( B/BP/BPMEDLEY/App-rhttp-0.03.tar.gz, BPMEDLEY, 2013; MetaCPAN )
App-rhttp/bin/rhttp.pl ( view source; MetaCPAN )
ent::Socket;
use Getopt::Long;
use JSON::PP;

our $VERSION = "0.03";

$| = 1;

$AnyEvent::Log::FILTER->level("info");

our %Config = (
    config_file => "rhttp.json",
    cert_file => "",
    key_fil
r exit;

if ($Config{add}) {
    my $json_config = config($Config{config_file});

    my $add = delete($Config{add});
    %Config = %{$json_config} if defined $json_config;

    if ($add =~ m#^vhost:(
e}, JSON::PP->new->ascii->pretty->encode(\%Config));

    exit;
}

if ($Config{del}) {
    my $json_config = config($Config{config_file});

    my $del = delete($Config{del});
    %Config = %{$json_co
Spellunker ( T/TO/TOKUHIROM/Spellunker-v0.4.0.tar.gz, TOKUHIROM, 2013; MetaCPAN )
Spellunker/lib/Spellunker.pm ( view source; MetaCPAN )
_perl_code {
    my $PERL_NAME = '[A-Za-z_][A-Za-z0-9_]*';

    # Class name
    # Foo::Bar
    # JSON::PP::
    return 1 if $_[0] =~ /\A
        [\+\$]?
        (?: $PERL_NAME :: )+
        $PERL_NAM
ef access
    return 1 if $_[0] =~ /\A
        \$ $PERL_NAME -> \{ $PERL_NAME \}
    \z/x;

    # JSON::XS-ish boolean value
    return 1 if $_[0] eq '\1' || $_[0] eq '\1';

    return 0;
}

1;
__END_
Dancer-Plugin-DynamicConfig ( K/KS/KSTAR/Dancer-Plugin-DynamicConfig-0.07.tar.gz, KSTAR, 2013; MetaCPAN )
Dancer-Plugin-DynamicConfig/README.pod ( view source; MetaCPAN )
e JSON::XS qw(decode_json);
use Time::HiRes;
use Try::Tiny;

our $VERSION = '0.07';

my @file_types = ({
  type => 'json',
  re => qr{\.json$},
  parser => sub {
    my ($filename) = @_;
    my $json;
$filename) =~ /(.*)/s; # untaint
      try {
        $json = decode_json(encode('UTF-8', $1));
      } catch {
        warning "couldn't parse json file ($filename): $_\n";
      };
    } catch {
    
  warning "couldn't find file to parse ($filename): $_\n";
    };
    return $json;
  },
});

my $dynamic_config;

register dynamic_config => sub {
  my ($file_key) = @_;

  initialize() unless $dynam
Dancer-Plugin-DynamicConfig ( K/KS/KSTAR/Dancer-Plugin-DynamicConfig-0.07.tar.gz, KSTAR, 2013; MetaCPAN )
Dancer-Plugin-DynamicConfig/lib/Dancer/Plugin/DynamicConfig.pm ( view source; MetaCPAN )
e JSON::XS qw(decode_json);
use Time::HiRes;
use Try::Tiny;

our $VERSION = '0.07';

my @file_types = ({
  type => 'json',
  re => qr{\.json$},
  parser => sub {
    my ($filename) = @_;
    my $json;
$filename) =~ /(.*)/s; # untaint
      try {
        $json = decode_json(encode('UTF-8', $1));
      } catch {
        warning "couldn't parse json file ($filename): $_\n";
      };
    } catch {
    
  warning "couldn't find file to parse ($filename): $_\n";
    };
    return $json;
  },
});

my $dynamic_config;

register dynamic_config => sub {
  my ($file_key) = @_;

  initialize() unless $dynam

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