Group
Extension

Matches 35359

WWW-Wordpress ( D/DA/DANNYT/WWW-Wordpress-1.3.tar.gz, DANNYT, 2014; MetaCPAN )
WWW-Wordpress/lib/WWW/Wordpress.pm ( view source; MetaCPAN )
se Moose;
use Net::SSL (); # From Crypt-SSLeay
use LWP::UserAgent;
use HTTP::Cookies;
use JSON qw( decode_json ); 
use URI;
use Data::Dumper;

our $VERSION = '1.3';

###### default values #####
use co
ontent;

my $response_json = decode_json($response->content);
#print Dumper $response_json;
my $post_count = $response_json->{'post_count'};
my $subscribers_count = $response_json->{'subscribers_count
a);
#print "\n \n".$response->content;
my $response_json = decode_json($response->content);
my $id = $response_json->{'ID'};
my $URL = $response_json->{'URL'};

return {id => $id, URL => $URL};
}    
WWW-Twitter ( D/DA/DANNYT/WWW-Twitter-1.3.tar.gz, DANNYT, 2014; MetaCPAN )
WWW-Twitter/lib/WWW/Twitter.pm ( view source; MetaCPAN )
n/x-www-form-urlencoded; charset=UTF-8");
$self->browser->default_header('Accept' => 'application/json, text/javascript, */*; q=0.01');
$self->browser->default_header('X-PHX' => 'true');
$self->browse
icity_token = $self->authenticity_token;

$self->browser->default_header('Accept' => "application/json, text/javascript, */*; q=0.01");
$self->browser->default_header('Accept-Language' => 'en-us,en;q=
icity_token = $self->authenticity_token;

$self->browser->default_header('Accept' => "application/json, text/javascript, */*; q=0.01");
$self->browser->default_header('Accept-Language' => 'en-us,en;q=
Net-Reddit ( D/DA/DANNYT/Net-Reddit-1.2.tar.gz, DANNYT, 2014; MetaCPAN )
Net-Reddit/lib/Net/Reddit.pm ( view source; MetaCPAN )
::Dumper;
use Net::SSL (); # From Crypt-SSLeay
use LWP::UserAgent;
use HTTP::Cookies;
use JSON qw( decode_json ); 
use DeathByCaptcha::SocketClient;


$Net::HTTPS::SSL_SOCKET_CLASS = "Net::SSL"; # For
password;


my $post_data = {'user' => $username, 
				'passwd' => $password, 
				'api_type' => 'json',				
				'op' => 'login'
				};

$self->browser->default_header('Referer' => "http://www.reddit.
ult_header('Connection' => 'keep-alive');
$self->browser->default_header('Accept' => 'application/json, text/javascript, */*; q=0.01');
$self->browser->default_header('X-Requested-With' => 'XMLHttpReq
Sque ( W/WW/WWOLF/Sque-0.010.tar.gz, WWOLF, 2014; MetaCPAN )
Sque/lib/Sque/Encoder.pm ( view source; MetaCPAN )
se 'Role';
use JSON;

# ABSTRACT: Any::Moose role for encoding Sque structures
#
# =attr encoder
#
# JSON encoder by default.
#
# =cut
has encoder => ( is => 'ro', default => sub { JSON->new->utf8 } )
Chef-REST-Client ( B/BP/BPATEL/Chef-REST-Client-1.2.tar.gz, BPATEL, 2014; MetaCPAN )
Chef-REST-Client/lib/Chef/REST/Client/roles.pm ( view source; MetaCPAN )
Client::attributes;

$Chef::REST::Client::roles::VERSION = 1.0;

# this module will be passed tha json parsed hash 
# under ___data__() or variable.
# process it depending on the content expected.

su
WebService-OANDA-ExchangeRates ( D/DD/DDOYLE/WebService-OANDA-ExchangeRates-0.003.tar.gz, DDOYLE, 2014; MetaCPAN )
WebService-OANDA-ExchangeRates/lib/WebService/OANDA/ExchangeRates.pm ( view source; MetaCPAN )
package WebService::OANDA::ExchangeRates;

use JSON::XS;
use LWP::UserAgent;
use Moo;
use Types::Standard qw{ ArrayRef Int Str StrMatch };
use Type::Utils qw{ declare as where coerce from via enum};
u
 if $type->has_coercion;
            if ( ! $type->check($val) ) {
                $val = JSON::XS::encode_json($val) if ref $val;
                die "invalid value: $key = ($val)";
            }
   

    return $ua;
}

# GET /currencies.json
sub get_currencies {
    my $self = shift;
    my %params = @_;

    my $response = $self->_get_request('currencies.json', \%params);

    # convert arrayref
Chef-REST-Client ( B/BP/BPATEL/Chef-REST-Client-1.2.tar.gz, BPATEL, 2014; MetaCPAN )
Chef-REST-Client/lib/Chef/REST.pm ( view source; MetaCPAN )
ef
 push @INC, '/', @base;
};

use parent qw { Chef Chef::Header };
use LWP::UserAgent;
use Mojo::JSON;

sub new {
   my $class = shift;
   my $self  = $class->SUPER::new(@_);
   bless $self, $class;
 			  
	return $response;
}

sub post 
{
	my $self  = shift;
	my $param = {@_};
	my $mojo_json = new Mojo::JSON();
	my $response  = $self->add_headers( 
	                    $self->header(
		         
        'Path'    => $param->{'api_end_point'},
		                             'Content' => $mojo_json->encode($param->{'data'})
		                        )->hash
		                      )
		         
Chef-REST-Client ( B/BP/BPATEL/Chef-REST-Client-1.2.tar.gz, BPATEL, 2014; MetaCPAN )
Chef-REST-Client/lib/Chef/REST/Client.pm ( view source; MetaCPAN )
base; #REST
 pop @base; #Chef
 push @INC, '/', @base;
};

use parent qw { Chef::REST };
use Mojo::JSON;
use Module::Load;
use vars qw { $AUTOLOAD };

sub new {
  my $class = shift;
  my $param = {@_};
lf = shift;
    my $end_point = $self->api_end_point;
    my $mojo_json = new Mojo::JSON();
    my $list_of_roles = 
       $mojo_json->decode(
             $self->ua(  'client_name'   => $self->name 
Chef-REST-Client ( B/BP/BPATEL/Chef-REST-Client-1.2.tar.gz, BPATEL, 2014; MetaCPAN )
Chef-REST-Client/lib/Chef/REST/Client/cookbooks.pm ( view source; MetaCPAN )
ist all the cookbooks available. 
$obj->cookbook()->list;

=cut

# this module will be passed tha json parsed hash 
# under ___data__() or variable.
# process it depending on the content expected.

su
Test-Chado ( S/SI/SIDD/Test-Chado-v4.1.1.tar.gz, SIDD, 2014; MetaCPAN )
Test-Chado/lib/Test/Chado/FixtureLoader/Preset.pm ( view source; MetaCPAN )
nfig_dir } );

    my @all_configs = map { basename $_}
        File::Find::Rule->file->name(qr/\.json$/)->in($config_dir);

    for my $config_file (@all_configs) {
        my $fixture_dir = catdir( 
Chef-REST-Client ( B/BP/BPATEL/Chef-REST-Client-1.2.tar.gz, BPATEL, 2014; MetaCPAN )
Chef-REST-Client/lib/Chef/REST/Client/environments.pm ( view source; MetaCPAN )
:attributes;

$Chef::REST::Client::environments::VERSION = 1.0;

# this module will be passed tha json parsed hash 
# under ___data__() or variable.
# process it depending on the content expected.

su
Chef-REST-Client ( B/BP/BPATEL/Chef-REST-Client-1.2.tar.gz, BPATEL, 2014; MetaCPAN )
Chef-REST-Client/lib/Chef/Header.pm ( view source; MetaCPAN )
r->{'Accept'} = $method if defined $accept;
             $self->header->{'Accept'} = 'application/json' unless 
     defined $self->header->{'Accept'};           
      return $self->header->{'Accept'
WebService-Freebox ( V/VA/VADZ/WebService-Freebox-0.001.tar.gz, VADZ, 2014; MetaCPAN )
WebService-Freebox/lib/WebService/Freebox.pm ( view source; MetaCPAN )

use warnings;

package WebService::Freebox;

# ABSTRACT: Freebox API wrappers.


use Mouse;

use JSON;
use REST::Client;

our $VERSION = '0.001'; # VERSION

has app_id => ( is => 'ro', isa => 'Str', 
ttp://mafreebox.freebox.fr');
    $c->addHeader('Accept', 'application/json');
    $c->addHeader('Content-Type', 'application/json');

    return $c;
}

# Wrapper around REST::Client request() checkin
    die qq{$errmsg ("$request $url" failed with HTTP error $errcode).\n}
    }

    return decode_json $c->responseContent()
}

# Helper for making normal API requests, i.e. all except for the initial
Chef-REST-Client ( B/BP/BPATEL/Chef-REST-Client-1.2.tar.gz, BPATEL, 2014; MetaCPAN )
Chef-REST-Client/lib/Chef/REST/Client/EndPoints.pm ( view source; MetaCPAN )
irname(__FILE__) ) ) );
 pop @base; #REST
 pop @base; #Chef
 push @INC, '/', @base;
};

use Mojo::JSON;

sub new {
  my $class  = shift;
  my $param  = {@_};
  my $self   = {};
  bless $self, $class;
b ___data___
{
	my $self = shift;
	my $result = shift;
	my $mojo_json = new Mojo::JSON();
	   $self->{'___data___'} = 
	   		$mojo_json->decode( $result )  
     						if defined $result;
     						
Monitoring-Spooler ( T/TE/TEX/Monitoring-Spooler-0.05.tar.gz, TEX, 2014; MetaCPAN )
Monitoring-Spooler/lib/Monitoring/Spooler/Web/API.pm ( view source; MetaCPAN )
ry::Tiny;
use JSON;

# extends ...
extends 'Monitoring::Spooler::Web';
# has ...
has 'json' => (
    'is'    => 'ro',
    'isa'   => 'JSON',
    'lazy'  => 1,
    'builder' => '_init_json',
);
# with 
...
# initializers ...
sub _init_json {
    my $self = shift;

    my $JSON = JSON::->new()->utf8();

    return $JSON;
}

sub _init_fields {
    return [qw(mode group_id queue message)];
}

# your co
_ref = $self->json()->decode($queue);
    } catch {
        $self->logger()->log( message => 'Failed to decode JSON: '.$_, level => 'warning', );
    };
    $queue = undef;

    # if json decoding abo
YAML-Tiny-Color ( S/SH/SHARYANTO/YAML-Tiny-Color-0.04.tar.gz, SHARYANTO, 2014; MetaCPAN )
YAML-Tiny-Color/lib/YAML/Tiny/Color.pm ( view source; MetaCPAN )

=head1 ACKNOWLEDGEMENTS

YAML dumping code stolen from L<YAML::Tiny> (1.51).

=head1 SEE ALSO

L<JSON::Color>

At the time of this writing, none of syntax highlighting libraries on CPAN
support YAML.
Gearman-JobScheduler ( L/LV/LVALIUKAS/Gearman-JobScheduler-0.16.tar.gz, LVALIUKAS, 2014; MetaCPAN )
Gearman-JobScheduler/lib/Gearman/JobScheduler/AbstractFunction.pm ( view source; MetaCPAN )
my_variable>) will be discarded after
each run.

Returns result on success (serializable by the L<JSON> module). The result
will be discarded if the job is ordered on Gearman as a background process.
) C<$args> (hashref), arguments required for running the
Gearman function  (serializable by the L<JSON> module)

=item * (optional) instance of Gearman::JobScheduler::Configuration to be used by the w
nal) C<$args> (hashref), arguments needed for running the Gearman
function (serializable by the L<JSON> module)

=item * (optional) Instance of Gearman::JobScheduler::Configuration to be used by the c
Games-SMTNocturne-Demons ( D/DO/DOY/Games-SMTNocturne-Demons-0.02.tar.gz, DOY, 2014; MetaCPAN )
Games-SMTNocturne-Demons/lib/Games/SMTNocturne/Demons/FusionChart.pm ( view source; MetaCPAN )
octurne::Demons::FusionChart::VERSION = '0.02';
use strict;
use warnings;

use JSON::PP;

my %FUSION_DATA = %{ decode_json(do { local $/; <DATA> }) };
my %TYPES = %{ $FUSION_DATA{normal_fusions} };
my
Gearman-JobScheduler ( L/LV/LVALIUKAS/Gearman-JobScheduler-0.16.tar.gz, LVALIUKAS, 2014; MetaCPAN )
Gearman-JobScheduler/lib/Gearman/JobScheduler.pm ( view source; MetaCPAN )
rializing / unserializing
use Data::Compare;
use Data::Dumper;

use JSON;
# serialize hashes with the same key order:
my $json = JSON->new->allow_nonref->canonical->utf8;

use Data::UUID;
use File::Pa
hashref into string (to be passed to Gearman)
#
# Parameters:
# * hashref that is serializable by JSON module (may be undef)
#
# Returns:
# * a string (string is empty if the hashref is undef)
# 
# Di
def;
	eval {
		
		$hashref_serialized = $json->encode( $hashref );
		
		# Try to deserialize, see if we get the same hashref
		my $hashref_deserialized = $json->decode($hashref_serialized);
		unless (
Games-SMTNocturne-Demons ( D/DO/DOY/Games-SMTNocturne-Demons-0.02.tar.gz, DOY, 2014; MetaCPAN )
Games-SMTNocturne-Demons/lib/Games/SMTNocturne/Demons/Demon.pm ( view source; MetaCPAN )
oad '""' => 'to_string', fallback => 1;
# ABSTRACT: an individual demon

use JSON::PP;


my %DEMONS_BY_NAME = %{ decode_json(do { local $/; <DATA> }) };
for my $name (keys %DEMONS_BY_NAME) {
    $DEMO

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