Group
Extension

Matches 35358

WebService-Shutterstock ( B/BP/BPHILLIPS/WebService-Shutterstock-0.003.tar.gz, BPHILLIPS, 2012; MetaCPAN )
WebService-Shutterstock/lib/WebService/Shutterstock/Lightbox.pm ( view source; MetaCPAN )
	my $self = shift;
		my $client = $self->client;
		$client->GET( sprintf('/lightboxes/%s/extended.json', $self->id), $self->with_auth_params );
		return $client->process_response;
	}
);


has id => ( 
my $self = shift;
	my $client = $self->client;
	$client->GET( sprintf( '/lightboxes/%s/public_url.json', $self->id ), $self->with_auth_params );
	if(my $data = $client->process_response){
		return $da
e_id = shift;
	my $client = $self->client;
	$client->DELETE(
		sprintf( '/lightboxes/%s/images/%s.json', $self->id, $image_id ),
		$self->with_auth_params( username => $self->username )
	);
	delete $s
Clustericious ( B/BD/BDUGGAN/Clustericious-0.9909.tar.gz, PLICEASE, 2012; MetaCPAN )
Clustericious/lib/Clustericious/Client.pm ( view source; MetaCPAN )
ute;
use MojoX::Log::Log4perl;
use Log::Log4perl qw/:easy/;
use File::Temp;
use JSON::MaybeXS qw( encode_json decode_json );
use Carp qw( carp );
use Mojo::Util qw( monkey_patch );

# ABSTRACT: Constr
$meta && $meta->get("skip_existing");
            $body = encode_json $arg;
            $headers = { 'Content-Type' => 'application/json' };
        } elsif (ref $arg eq 'CODE') {
            $cb = $s
    ||= 'application/json';

    if($body && ref $body eq 'HASH' || ref $body eq 'ARRAY')
    {
        $headers->{'Content-Type'} = 'application/json';
        $body = encode_json $body;
    }

    r
Mojolicious-Plugin-KossyValidator ( F/FU/FUKAI/Mojolicious-Plugin-KossyValidator-0.04.tar.gz, FUKAI, 2012; MetaCPAN )
Mojolicious-Plugin-KossyValidator/lib/Mojolicious/Plugin/KossyValidator.pm ( view source; MetaCPAN )
 => '无',
                rule    => [], 
            },  
        ]); 
    
        $c->render( json => {
            result => 'false',
            messages => $result->errors
        }) if $result
Data-Riak-Fast ( M/MY/MYFINDER/Data-Riak-Fast-0.03.tar.gz, MYFINDER, 2012; MetaCPAN )
Data-Riak-Fast/lib/Data/Riak/Fast.pm ( view source; MetaCPAN )
package Data::Riak::Fast;

use Mouse;

use JSON::XS qw/decode_json/;
use URI;

use Data::Riak::Fast::Result;
use Data::Riak::Fast::ResultSet;
use Data::Riak::Fast::Bucket;
use Data::Riak::Fast::MapRed
@parts
            ],
        }
    );
}

sub _buckets {
    my $self = shift;

    return decode_json(
        $self->send_request({
            method => 'GET',
            uri => '/buckets',
      
,
            uri => $request_str
    });
}

sub stats {
    my $self = shift;

    return decode_json(
        $self->send_request({
            method => 'GET',
            uri => '/stats',
        
Clustericious ( B/BD/BDUGGAN/Clustericious-0.9909.tar.gz, BDUGGAN, 2012; MetaCPAN )
Clustericious/lib/Clustericious/App.pm ( view source; MetaCPAN )
mplates;
use Mojo::ByteStream qw/b/;
use Data::Dumper;
use Clustericious::Log;
use Mojo::URL;
use JSON::XS;
use Scalar::Util qw/weaken/;
use Mojo::Base 'Mojolicious';
use File::HomeDir ();

use Cluste
HomeDir->my_home . "/etc", "/util/etc", "/etc" );

{
no warnings 'redefine';
sub Math::BigInt::TO_JSON {
    my $val = shift;
    my $copy = "$val";
    my $i = 0 + $copy;
    return $i;
}
}

=head2 $
Qless ( N/NU/NUCLON/Qless-0.06.tar.gz, NUCLON, 2012; MetaCPAN )
Qless/lib/Qless.pm ( view source; MetaCPAN )
we can do the work associated with it!
    $job->process();

The job data must be serializable to JSON, and it is recommended that you use a hash for it. See below for a list of the supported job opti
Plack-App-Prack ( L/LE/LEEDO/Plack-App-Prack-0.02.tar.gz, LEEDO, 2012; MetaCPAN )
Plack-App-Prack/lib/Plack/App/Prack/Worker.pm ( view source; MetaCPAN )
ck::App::Prack::Worker;

use strict;
use warnings;

use Time::HiRes;
use File::Temp ':POSIX';
use JSON;
use IO::Socket::UNIX;
use Plack::App::Prack::Request;

my $NACK = 'Nack::Server.run(ARGV[0], :fi
= $sock->getline;

    # could be a stack trace
    if ($p !~ /^\d+$/) {
      my $stack = decode_json $p;
      die "$stack->{name}: $stack->{message}";
    }

    $self->{sock} = $sock;
    $self->{
Plack-App-Prack ( L/LE/LEEDO/Plack-App-Prack-0.02.tar.gz, LEEDO, 2012; MetaCPAN )
Plack-App-Prack/lib/Plack/App/Prack/Request.pm ( view source; MetaCPAN )
package Plack::App::Prack::Request;

use strict;
use warnings;

use JSON;
use Plack::App::Prack::Response;

my @ENV_KEYS = qw/REQUEST_METHOD PATH_INFO QUERY_STRING 
                  SERVER_NAME SERVE
ift;
  return length($data).":".$data.",";
}

sub write {
  my $self = shift;

  my $env = encode_json($self->_filter_env($self->{env}));

  my $input = "";
  my $buf = "";

  while ($self->{env}->{'p
Clustericious ( B/BD/BDUGGAN/Clustericious-0.9909.tar.gz, PLICEASE, 2012; MetaCPAN )
Clustericious/lib/Clustericious/Config.pm ( view source; MetaCPAN )
alled" } = $sub };
  $sub->($self);
}


package Clustericious::Config::Callback;

use JSON::MaybeXS qw( encode_json );

sub new
{
  my($class, @args) = @_;
  bless [@args], $class;
}

sub args { @{ sh


sub execute { '' }

sub to_yaml
{
  my($self) = @_;
  "!!perl/array:@{[ ref $self ]} @{[ encode_json [@$self] ]}";
}

package Clustericious::Config::Callback::Password;

use base qw( Clustericious::
=head1 DESCRIPTION

Clustericious::Config reads configuration files which are Mojo::Template's
of JSON or YAML files.  There should generally be an entry for
'url', which may be used by either a clien
Clustericious ( B/BD/BDUGGAN/Clustericious-0.9909.tar.gz, BDUGGAN, 2012; MetaCPAN )
Clustericious/share/MbdAppTemplate/t/001_basic.t ( view source; MetaCPAN )
cation/json" },
          qq[{ "app": "<%= $class %>", "version" : "$<%= $class %>::VERSION" }])
        ->status_is(200, "posted version");

$t->get_ok('/clustericious/<%= $class %>')
  ->json_conten
Net-WURFL-ScientiaMobile ( P/PA/PASSANI/Net-WURFL-ScientiaMobile-1.0.3.tar.gz, PASSANI, 2012; MetaCPAN )
Net-WURFL-ScientiaMobile/lib/Net/WURFL/ScientiaMobile/Cache/Cookie.pm ( view source; MetaCPAN )
package Net::WURFL::ScientiaMobile::Cache::Cookie;
use Moo;

use JSON qw(decode_json encode_json);
use Plack::Request;

with 'Net::WURFL::ScientiaMobile::Cache';

has 'cookie_name'       => (is => 'rw
 return 0 unless $request->cookies->{$self->cookie_name};
    
    my $cookiedata = eval { decode_json($request->cookies->{$self->cookie_name}) };
    return 0 unless ref $cookiedata eq 'HASH';
    re
abilities => $capabilities,
    };
    
    $self->cookies({
        $self->cookie_name => encode_json($data),
    });
}

sub setDeviceFromID { 1 }
sub getMtime        { 0 }
sub setMtime        { 1 }
Clustericious ( B/BD/BDUGGAN/Clustericious-0.9909.tar.gz, BDUGGAN, 2012; MetaCPAN )
Clustericious/lib/Clustericious/Plugin/AutodataHandler.pm ( view source; MetaCPAN )
 helper called 'parse_autodata' that handles incoming data by
Content-Type.

Supports application/json, text/x-yaml and
application/x-www-form-urlencoded (in-bound only).

When parse_autodata is calle
 Accept header, the Content-Type header, or the default.  (By
default, the default is application/json, but you can override that
too).

=head1 TODO

more documentation

handle XML with schemas

handl
';
use JSON::XS;
use YAML::XS qw/Dump Load/;

use Clustericious::Log;

my $default_decode = 'application/x-www-form-urlencoded';
my $default_encode = 'application/json';

my $json_encoder = JSON::XS->
Clustericious ( B/BD/BDUGGAN/Clustericious-0.9909.tar.gz, BDUGGAN, 2012; MetaCPAN )
Clustericious/lib/Clustericious/RouteBuilder/Search.pm ( view source; MetaCPAN )
s : given the plural of a table, look up the name of the class

The route that is created turns a JSON structure which is POSTed into
parameters for Rose::DB::Object::Manager::get_objects.

Additional
turns that
resultset to the client.

=cut

package Clustericious::RouteBuilder::Search;
use Mojo::JSON;
use Clustericious::Log;
use List::MoreUtils qw/uniq/;
use Data::Dumper;
use strict;

use Sub::Ex
Plack-App-Prack ( L/LE/LEEDO/Plack-App-Prack-0.02.tar.gz, LEEDO, 2012; MetaCPAN )
Plack-App-Prack/lib/Plack/App/Prack.pm ( view source; MetaCPAN )
PTION

This app will fork a ruby process that can handle rack requests.
Requests are converted to JSON and sent over a unix socket as a
netstring, a response is then read and used as the psgi response
Yars ( B/BD/BDUGGAN/Yars-0.77.tar.gz, PLICEASE, 2012; MetaCPAN )
Yars/lib/Yars/Command/yars_generate_diskmap.pm ( view source; MetaCPAN )
ers + hosts to buckets for yars.
our $VERSION = '1.33'; # VERSION


use strict;
use warnings;
use JSON::MaybeXS ();
use Getopt::Long qw( GetOptions );
use Pod::Usage qw( pod2usage );
use feature 'say'
 $_, buckets => $servers{$host}{$_} }, keys %{ $servers{$host} }
        ]};
    }

    my $out = JSON::MaybeXS->new->space_after->encode({ servers => \@conf });
    $out =~ s/{/\n{/g;
    $out =~ s/\
Yars ( B/BD/BDUGGAN/Yars-0.77.tar.gz, PLICEASE, 2012; MetaCPAN )
Yars/lib/Yars/Command/yars_balance.pm ( view source; MetaCPAN )
get($bucket_map_url);
    if(my $res = $tx->success)
    {
      my %server_bucket_map = %{ $res->json };
      my %my_bucket_map = %{ $yars->tools->bucket_map };
      
      foreach my $key (keys %m
Catalyst-Action-REST ( B/BO/BOBTFISH/Catalyst-Action-REST-1.06.tar.gz, BOBTFISH, 2012; MetaCPAN )
Catalyst-Action-REST/lib/Catalyst/TraitFor/Request/REST.pm ( view source; MetaCPAN )
        # cope with invalid (missing required q parameter) header like:
            # application/json; charset="utf-8"
            # http://tools.ietf.org/html/rfc2616#section-14.1
            unless
ing it REST methods and attributes.

=head1 SYNOPSIS

     if ( $c->request->accepts('application/json') ) {
         ...
     }

     my $types = $c->request->accepted_content_types();

=head1 DESCRI
Catalyst-Action-REST ( B/BO/BOBTFISH/Catalyst-Action-REST-1.06.tar.gz, BOBTFISH, 2012; MetaCPAN )
Catalyst-Action-REST/lib/Catalyst/Action/Serialize/JSONP.pm ( view source; MetaCPAN )
package Catalyst::Action::Serialize::JSONP;
use Moose;
use namespace::autoclean;

extends 'Catalyst::Action::Serialize::JSON';

our $VERSION = '1.06';
$VERSION = eval $VERSION;

after 'execute' => sub
.$c->res->output().');');
    } else {
      warn 'Callback: '.$callback_value.' will not generate valid Javascript. Falling back to JSON output';
    }
  }
};

__PACKAGE__->meta->make_immutable;

1;
Catalyst-Action-REST ( B/BO/BOBTFISH/Catalyst-Action-REST-1.06.tar.gz, BOBTFISH, 2012; MetaCPAN )
Catalyst-Action-REST/lib/Catalyst/Request/REST.pm ( view source; MetaCPAN )
EST-y subclass of Catalyst::Request

=head1 SYNOPSIS

     if ( $c->request->accepts('application/json') ) {
         ...
     }

     my $types = $c->request->accepted_content_types();

=head1 DESCRI
Catalyst-Action-REST ( B/BO/BOBTFISH/Catalyst-Action-REST-1.06.tar.gz, BOBTFISH, 2012; MetaCPAN )
Catalyst-Action-REST/lib/Catalyst/Action/REST.pm ( view source; MetaCPAN )
ia Type" error. What gives?!

A:  Most likely, you haven't set Content-type equal to "application/json", or
one of the accepted return formats.  You can do this by setting it in your query
accepted re
mats.  You can do this by setting it in your query string
thusly: C<< ?content-type=application%2Fjson (where %2F == / uri escaped). >>

B<NOTE> Apache will refuse %2F unless configured otherwise.
Mak

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