Group
Extension

Matches 35358

InterMine-Model ( I/IN/INTERMINE/InterMine-Model-0.9901.tar.gz, INTERMINE, 2012; MetaCPAN )
InterMine-Model/lib/InterMine/Model/ClassDescriptor.pm ( view source; MetaCPAN )
 BETTER COERCION 
        # SOLUTION CAN BE FOUND!!!!
        if (blessed $value and $value->isa('JSON::Boolean')) {
            $args->{$key} = $$value;
        }
    }
    return $self->$orig($args)
Net-APNS ( H/HA/HAOYAYOI/Net-APNS-0.0202.tar.gz, HAOYAYOI, 2012; MetaCPAN )
Net-APNS/lib/Net/APNS/Notification.pm ( view source; MetaCPAN )
oose;
use Net::SSLeay qw/die_now die_if_ssl_error/;
use Socket;
use Encode qw(decode encode);
use JSON::XS;
our $VERSION = '0.0202';

has message => (
    is      => 'rw',
    isa     => 'Str',
    de
>custom} > 0) {
        $data->{custom} = $self->custom;
    }

    my $jsonxs = JSON::XS->new->utf8(1)->encode($data);
    $jsonxs =~ s/("badge":)"([^"]+)"/$1$2/;
    return
        chr(0)
      . pa
ck( 'n',  32 )
      . pack( 'H*', $self->devicetoken )
      . pack( 'n',  length($jsonxs) )
      . $jsonxs;
}

sub write {
    my ( $self, $args ) = @_;

    if ( $args->{devicetoken} ) { $self->de
AnyMQ-ZeroMQ ( R/RE/REVMISCHA/AnyMQ-ZeroMQ-0.06.tar.gz, REVMISCHA, 2012; MetaCPAN )
AnyMQ-ZeroMQ/lib/AnyMQ/Trait/ZeroMQ.pm ( view source; MetaCPAN )
ublish;
use AnyEvent::ZeroMQ::Subscribe;
use AnyMQ::Topic::Trait::ZeroMQ;
use Carp qw/croak/;
use JSON;

has 'publish_address'   => ( is => 'rw', isa => 'Str' );
has 'subscribe_address' => ( is => 'rw
( is => 'rw', lazy_build => 1, isa => 'ZeroMQ::Raw::Context' );
has '_zmq_json' => ( is => 'rw', lazy_build => 1, isa => 'JSON' );

# topic => [ callbacks ]
has 'subscriptions' => (
    traits     => 
=> {
        subscription_topics => 'keys',
    },
);        

sub _build__zmq_json {
    my ($self) = @_;
    return JSON->new->utf8;
}

sub _build__zmq_context {
    my ($self) = @_;

    my $c = Ze
AnyMQ-ZeroMQ ( R/RE/REVMISCHA/AnyMQ-ZeroMQ-0.06.tar.gz, REVMISCHA, 2012; MetaCPAN )
AnyMQ-ZeroMQ/lib/AnyMQ/Topic/Trait/ZeroMQ.pm ( view source; MetaCPAN )


    # encode events as JSON and transmit them
    foreach my $event (@events) {
        my $json = $event;
        if (ref $json) {
            $json = $self->bus->_zmq_json->encode($event);
       
 }

        $self->bus->_zmq_pub->publish($json);
    }
};

1;
WebService-MyGengo ( N/NH/NHEINRIC/WebService-MyGengo-0.012.tar.gz, NHEINRIC, 2012; MetaCPAN )
WebService-MyGengo/lib/WebService/MyGengo/Client.pm ( view source; MetaCPAN )
refs are keyed
        #   unnecessarily by increment ID.
        #   This is actually in the raw JSON string...
        my $args =
            ref($_) eq 'ARRAY'
            ? $_->[0]
            : $
Labkey-Query ( B/BB/BBIMBER/Labkey-Query-1.02.tar.gz, BBIMBER, 2012; MetaCPAN )
Labkey-Query/lib/Labkey/Query.pm ( view source; MetaCPAN )
LICENSE-2.0

=cut

package Labkey::Query;

use strict;
use LWP::UserAgent;
use HTTP::Request;
use JSON;
use Data::Dumper;
use FileHandle;
use File::Spec;
use File::HomeDir;
use Carp;
use URI;

use var
k( $response->status_line );
	}

	my $json_obj = JSON->new->utf8->decode( $response->content )
	  || croak("ERROR: Unable to decode JSON.\n$url\n");

	return $json_obj;

}


=head1 insertRows()

inser
 @_;
	
	my $json_obj = JSON->new->utf8->encode($data);

	my $req = new HTTP::Request;
	$req->method('POST');
	$req->url($url);
	$req->content_type('application/json');
	$req->content($json_obj);
	$req
WebService-MyGengo ( N/NH/NHEINRIC/WebService-MyGengo-0.012.tar.gz, NHEINRIC, 2012; MetaCPAN )
WebService-MyGengo/lib/WebService/MyGengo/RequestFactory.pm ( view source; MetaCPAN )
 };

use WebService::MyGengo::Exception;

use URI;
use Digest::HMAC;
use Digest::SHA1;
use JSON qw(encode_json);

=head1 NAME

WebService::MyGengo::RequestFactory - A factory for creating myGengo API 
;

    $req_params->{data} = encode_json($params);

    my $request = HTTP::Request->new( $method => $uri );
    $request->push_header( 'Accept' => 'application/json; charset=utf-8' );
    $request->p
uest = HTTP::Request->new( $method => $uri );
    $request->push_header( 'Accept' => 'application/json; charset=utf-8' );

    return $request;
}

#=head2 _get_uri_and_req_params( $method, $endpoint )
WebService-MyGengo ( N/NH/NHEINRIC/WebService-MyGengo-0.012.tar.gz, NHEINRIC, 2012; MetaCPAN )
WebService-MyGengo/lib/WebService/MyGengo/Response.pm ( view source; MetaCPAN )
e Moose;
use namespace::autoclean;

extends 'WebService::MyGengo::Base';

use HTTP::Response;
use JSON;

=head1 NAME

WebService::MyGengo::Response - An response from the myGengo API

=head1 DESCRIPTI
);

#=head2 _serializer
#
#A JSON object.
#
#B<Note:> The API also supports XML. We do not. :)
#
#=cut
has _serializer => (
    is          => 'ro'
    , isa       => 'JSON'
    , init_arg  => undef
 
      => 1
    , builder   => '_build__serializer'
    );
sub _build__serializer {
    return new JSON;
}

#=head2 _deserialized
#
#The deserialized response body.
#
#Returns undef if the body could n
Protocol-XMLRPC ( V/VT/VTI/Protocol-XMLRPC-0.10.tar.gz, VTI, 2012; MetaCPAN )
Protocol-XMLRPC/lib/Protocol/XMLRPC.pm ( view source; MetaCPAN )
XMLRPC> is an XML-RPC protocol implementation. Method parameters
types are guessed just like in L<JSON>, but you can pass explicit type if
guessing is wrong for you. Read more about parameter creation
VendorAPI-2Checkout-Client ( L/LE/LENJAFFE/VendorAPI-2Checkout-Client-0.1502.tar.gz, LENJAFFE, 2012; MetaCPAN )
VendorAPI-2Checkout-Client/lib/VendorAPI/2Checkout/Client.pm ( view source; MetaCPAN )
mat = shift;
  my %mime_types = ( XML => 'application/xml', JSON => 'application/json', );
  return $mime_types{$format} || $mime_types{JSON};
}

=head1 SYNOPSIS

    use VendorAPI::2Checkout::Client;
 and detail_coupon(), list_payments(),
list_options(), list_products().

Return data is in XML or JSON.

Please refer to L<2Checkout's Back Office Admin API Documentation|http://www.2checkout.com/docu
me && $password) {
      return undef;
   }

   unless ( defined $format && $format =~ qr/^(?:XML|JSON)$/) {
      return undef;
   }

   $class = 'VendorAPI::2Checkout::Client::';
   if (defined $use
VendorAPI-2Checkout-Client ( L/LE/LENJAFFE/VendorAPI-2Checkout-Client-0.1502.tar.gz, LENJAFFE, 2012; MetaCPAN )
VendorAPI-2Checkout-Client/lib/VendorAPI/2Checkout/Client/Moose.pm ( view source; MetaCPAN )
                  };
sub _netloc   { 'www.2checkout.com:443'         };

enum 'Format' => qw( XML JSON );

class_type 'LPW::UserAGent';

has ua => (
   is => 'ro',
   isa => 'LWP::UserAgent',
   lazy 
Protocol-XMLRPC ( V/VT/VTI/Protocol-XMLRPC-0.10.tar.gz, VTI, 2012; MetaCPAN )
Protocol-XMLRPC/lib/Protocol/XMLRPC/ValueFactory.pm ( view source; MetaCPAN )
e, $type) = ($type, '') unless defined $value;

    return $value if blessed($value);

    # From JSON::PP
    my $flags = B::svref_2object(\$value)->FLAGS;
    my $is_number = $flags & (B::SVp_IOK | 
VendorAPI-2Checkout-Client ( L/LE/LENJAFFE/VendorAPI-2Checkout-Client-0.1502.tar.gz, LENJAFFE, 2012; MetaCPAN )
VendorAPI-2Checkout-Client/lib/VendorAPI/2Checkout/Client/NoMoose.pm ( view source; MetaCPAN )
 and detail_coupon(), list_payments(),
list_options(), list_products().

Return data is in XML or JSON.

Please refer to L<2Checkout's Back Office Admin API Documentation|http://www.2checkout.com/docu
me && $password) {
      return undef;
   }

   unless ( defined $accept && $accept =~ qr/^(?:XML|JSON)$/) {
      $accept = 'XML';
   }

   my $self = bless {}, $class;
   my $ua = LWP::UserAgent->ne
WebService-SEOmoz-FreeAPI ( S/SE/SEOVISUAL/WebService-SEOmoz-FreeAPI-0.01.tar.gz, SEOVISUAL, 2012; MetaCPAN )
WebService-SEOmoz-FreeAPI/FreeAPI.pm ( view source; MetaCPAN )

use warnings;
use Digest::SHA qw( hmac_sha1_base64 );
use HTTP::Request::Common qw(POST);
use JSON;
use LWP::UserAgent;
use URI::Escape;
use vars qw/$module $errstr $timeout $VERSION $sendUrl $
seragent} ) {
		$args->{useragent} = LWP::UserAgent->new();
	}
	unless ( $args->{json} ) {
		$args->{json} = JSON->new->allow_nonref;
	}

	# Its important to realize that if your time is not ou
authenticationQuery;
}

sub postAPIRequest {
	my ($self, $apiUrl, $websiteString) = @_;
	my $json_string;
	$module .= ' -> postAPIRequest';

	my $http_header = HTTP::Request->new(POST => $apiU
Data-SearchEngine ( A/AN/ANELSON/Data-SearchEngine-0.33.tar.gz, ANELSON, 2012; MetaCPAN )
Data-SearchEngine/lib/Data/SearchEngine/Results.pm ( view source; MetaCPAN )
You
may serialize it thusly:

  my $json = $results->freeze({ format => 'JSON' });
  # ...
  my $results = Data::SearchEngine::Results->thaw($json, { format => 'JSON' });

=head1 ATTRIBUTES

=head2 el
Web-App ( A/AP/APLA/Web-App-1.21.tar.gz, APLA, 2012; MetaCPAN )
Web-App/lib/Web/App/Response.pm ( view source; MetaCPAN )

	# 1. set correct presentation
	# 2. remove redirect header
	
	$app->set_presentation ({type => 'json'});
	
	return;
}

sub new {
	my $class = shift;
	
	my $self = dclone ($template);
	
	if ($Class::
App-RepoSync ( C/CO/CORNELIUS/App-RepoSync-0.03.tar.gz, CORNELIUS, 2012; MetaCPAN )
App-RepoSync/lib/App/RepoSync/Export.pm ( view source; MetaCPAN )
epoSync::Export;
use 5.10.0;
use warnings;
use strict;
use Cwd qw(realpath getcwd);
use YAML;
use JSON;
use File::Spec;
use File::Find::Rule;
use File::Basename;
use Config::Tiny;
use App::RepoSync::S
Pickles ( D/DM/DMAKI/Pickles-0.10.tar.gz, DMAKI, 2012; MetaCPAN )
Pickles/lib/Pickles/WebApp.pm ( view source; MetaCPAN )


    # MyApp::Config
    MyApp->config_class('Config');

    # MyApp::Config::JSON
    MyApp->config_class('Config::JSON');

if you want to use fully qualified class name, use plus sign prefix.

    
Web-App ( A/AP/APLA/Web-App-1.21.tar.gz, APLA, 2012; MetaCPAN )
Web-App/lib/Web/App/Request.pm ( view source; MetaCPAN )
content output";
	
	# fix for "Wide characters to print"
	binmode STDOUT, ":utf8";
	utf8::decode ($content);
	$| = 1;
	
	print $content;
}

sub TO_JSON {
	my $self = shift;
	
	return {%$self}; 
}

1;
Web-App ( A/AP/APLA/Web-App-1.21.tar.gz, APLA, 2012; MetaCPAN )
Web-App/lib/Web/App/Helper.pm ( view source; MetaCPAN )
$pack->root;
	
	my $global_config_patch_json = delete $files->{global_config_patch_json};
	my $local_config_patch_json  = delete $files->{local_config_patch_json};
	
	debug "storing config files";
	
	
hin helper we have json structures
	my $serializer = Project::Easy::Config->serializer ('json');
	
	# global config
	my $patch = $serializer->parse_string ($global_config_patch_json);
	$pack->conf_pat
n
	$local_config_patch_json = Project::Easy::Config::string_from_template (
		$local_config_patch_json,
		$vars
	);
	$patch = $serializer->parse_string ($local_config_patch_json);
	$pack->fixup_path->

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