Group
Extension

Matches 35358

Data-Riak-Fast ( M/MY/MYFINDER/Data-Riak-Fast-0.03.tar.gz, MYFINDER, 2012; MetaCPAN )
Data-Riak-Fast/lib/Data/Riak/Fast/MapReduce/Phase/Map.pm ( view source; MetaCPAN )
ackage Data::Riak::Fast::MapReduce::Phase::Map;
use Mouse;
use Mouse::Util::TypeConstraints;

use JSON::XS ();

# ABSTRACT: Map phase of a MapReduce

with ('Data::Riak::Fast::MapReduce::Phase');

=hea

=cut

sub pack {
  my $self = shift;

  my $href = {};

  $href->{keep} = $self->keep ? JSON::XS::true() : JSON::XS::false() if $self->has_keep;
  $href->{language} = $self->language;
  $href->{name}
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
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',
        
Hypatia ( J/JA/JACKMANEY/Hypatia-0.029.tar.gz, JACKMANEY, 2012; MetaCPAN )
Hypatia/lib/Hypatia.pm ( view source; MetaCPAN )
iles (initially XML or ini; the only thing making this difficult for JSON is that queries usually take more than one line, and JSON doesn't support multi-line strings).

=item * Finish up some more of
HTML-Widgets-NavMenu-ToJSON ( S/SH/SHLOMIF/HTML-Widgets-NavMenu-ToJSON-v0.0.1.tar.gz, SHLOMIF, 2012; MetaCPAN )
HTML-Widgets-NavMenu-ToJSON/lib/HTML/Widgets/NavMenu/ToJSON.pm ( view source; MetaCPAN )
enu::ToJSON;

use 5.008;
use strict;
use warnings FATAL => 'all';

use Carp;

use parent 'HTML::Widgets::NavMenu::Object';

use JSON qw(encode_json);

=head1 NAME

HTML::Widgets::NavMenu::ToJSON - con
idgets::NavMenu to JSON

=head1 VERSION

Version 0.0.1

=cut

our $VERSION = '0.0.1';

=head1 SYNOPSIS

    use HTML::Widgets::NavMenu::ToJSON;
    use HTML::Widgets::NavMenu::ToJSON::Data_Persistence
avMenu::ToJSON::Data_Persistence::YAML->new(
            {
                filename => '/path/to/persistence_data.yaml',
            }
        );

    my $obj = HTML::Widgets::NavMenu::ToJSON->new(
  
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
Hypatia ( J/JA/JACKMANEY/Hypatia-0.029.tar.gz, JACKMANEY, 2012; MetaCPAN )
Hypatia/lib/Hypatia/DBI/Test/SQLite.pm ( view source; MetaCPAN )
:DBI::Test::SQLite;
{
  $Hypatia::DBI::Test::SQLite::VERSION = '0.029';
}
use Moose;
use DBI;
use JSON;
use Path::Class;
use namespace::autoclean;

has 'sqlite_dir'=>(isa=>'Str', is=>'ro',default=>sub
    my $table=$self->table;
    
    my $json_str="";
    
    $json_str.= " " .$_ while(<DATA>);
    
    my $table_data=JSON->new->relaxed->utf8->decode($json_str);
    
    my $found=0;
    
    fo
Text-Xslate ( G/GF/GFUJI/Text-Xslate-1.6002.tar.gz, GFUJI, 2012; MetaCPAN )
Text-Xslate/benchmark/json.pl ( view source; MetaCPAN )
se strict;

use Text::Xslate;
use JSON::XS;

use Benchmark qw(:all);
use Config; printf "Perl/%vd %s\n", $^V, $Config{archname};

foreach my $mod(qw(Text::Xslate JSON::XS)){
    print $mod, '/', $mod-
>VERSION, "\n";
}

my $n = shift(@ARGV) || 10;

my %vpath = (
    json => <<'TX',
<ul>
: for $books ->($item) {
    <li><:= $item.title :> (<: $item.author :>)</li>
: }
</ul>
TX
);

my $tx = Text::Xsl
->new(
    path      => \%vpath,
    cache_dir => '.xslate_cache',
    cache     => 2,
);

my $json = JSON::XS->new();

my %vars = (
     books => [(
        { title  => 'Islands in the stream',
     
Devel-DTrace-Provider ( C/CH/CHRISA/Devel-DTrace-Provider-1.11.tar.gz, CHRISA, 2012; MetaCPAN )
Devel-DTrace-Provider/lib/Devel/DTrace/Provider.pm ( view source; MetaCPAN )
l::DTrace::Provider;

use 5.008;
use strict;
use warnings;
use vars qw/ $DTRACE_AVAILABLE /;

use JSON;

BEGIN {
	our $VERSION = '1.11';
	require XSLoader;
	eval {
            XSLoader::load('Devel::D
Net-Gitlab ( A/AY/AYOUNG/Net-Gitlab-0.03.tar.gz, AYOUNG, 2012; MetaCPAN )
Net-Gitlab/lib/Net/Gitlab.pm ( view source; MetaCPAN )
ab installation via its API.


use strict;
use warnings;
use namespace::autoclean;

use Carp;
use JSON;
use LWP::UserAgent;

use Params::Validate::Checks ':all';
use Regexp::Common 'Email::Address';

content_type( 'application/json' );

    $req->header( 'private_token' => $self->private_token )
      unless $method->{ path } eq '/session';

    $req->content( encode_json $data )
      if keys %$d
;

    my $res = $self->_ua->request( $req );

    if ( $res->is_success ) {

      return decode_json $res->content;

    } else {

      $self->error( $res->status_line );
      return;

    }
  } #
Data-Riak-Fast ( M/MY/MYFINDER/Data-Riak-Fast-0.03.tar.gz, MYFINDER, 2012; MetaCPAN )
Data-Riak-Fast/lib/Data/Riak/Fast/MapReduce.pm ( view source; MetaCPAN )
:Riak::Fast::MapReduce::Phase::Map;
use Data::Riak::Fast::MapReduce::Phase::Reduce;

use JSON::XS qw/encode_json/;

with 'Data::Riak::Fast::Role::HasRiak';

=head1 DESCRIPTION

A map/reduce query.

=h
riak->send_request({
        content_type => 'application/json',
        method => 'POST',
        uri => 'mapred',
        data => encode_json({
            inputs => $self->inputs,
            query
Array-PseudoScalar ( D/DA/DAMI/Array-PseudoScalar-1.02.tar.gz, DAMI, 2012; MetaCPAN )
Array-PseudoScalar/lib/Array/PseudoScalar.pm ( view source; MetaCPAN )
all other operators will be derived from '""'
  ;

# be treated like an plain array by JSON::to_json()
sub TO_JSON  {my $self = shift; return [@$self]}

# additional methods for Template Toolkit, if p
EACH %]

=head2 Interaction with JSON

Likewise, L<JSON/to_json> only exports objects who possess a C<TO_JSON()>
method; so such a method is also implemented here. JSON is really
reluctant to emit any
additional calls are
needed to make it work :

  my $converter = JSON->new->allow_blessed->convert_blessed;
  print $converter->to_json($schizophrenic); # ["FOO","BAR","BUZ"]


=head1 PUBLIC METHODS

Beanstalk-Client ( G/GB/GBARR/Beanstalk-Client-1.07.tar.gz, GBARR, 2012; MetaCPAN )
Beanstalk-Client/lib/Beanstalk/Client.pm ( view source; MetaCPAN )
   },
    @args
  );

  # Send job, data created by encoding @args with JSON
  use JSON::XS;
  $client->encoder(sub { encode_json(\@_) });
  my $job2 = $client->put(
    { priority => 100,
      ttr  
Clustericious ( B/BD/BDUGGAN/Clustericious-0.9909.tar.gz, BDUGGAN, 2012; MetaCPAN )
Clustericious/lib/Test/Clustericious.pm ( view source; MetaCPAN )
Test::Mojo>, and add the following new attributes and methods.

=cut

use base 'Test::Mojo';

use JSON::XS;
use YAML::XS;
use File::Slurp qw/slurp/;
use Carp;
use List::Util qw(first);
use Clustericio
t = $t->testdata('filename');

 Looks for filename, filename.json, filename.yaml in 't', 'data' or
 't/data' directories.  Parses with json or yaml if appropriate, then
 returns the object.

=cut

sub
ml", "$_.json" }
                map { $_, "t/$_", "data/$_", "t/data/$_" }
                $filename;

    my $content = slurp($filename) or croak "Missing $filename";

    return decode_json($conten
WebService-Shutterstock ( B/BP/BPHILLIPS/WebService-Shutterstock-0.003.tar.gz, BPHILLIPS, 2012; MetaCPAN )
WebService-Shutterstock/lib/WebService/Shutterstock/Subscription.pm ( view source; MetaCPAN )
 subscription for a specific Shutterstock customer

use strict;
use warnings;
use Moo;
use JSON qw(encode_json);
use WebService::Shutterstock::LicensedImage;
use Carp qw(croak);

with 'WebService::Shu
Data-Riak-Fast ( M/MY/MYFINDER/Data-Riak-Fast-0.03.tar.gz, MYFINDER, 2012; MetaCPAN )
Data-Riak-Fast/lib/Data/Riak/Fast/Bucket.pm ( view source; MetaCPAN )
ak::Fast::MapReduce::Phase::Reduce;

use HTTP::Headers::ActionPack::LinkList;

use JSON::XS qw/decode_json encode_json/;

with 'Data::Riak::Fast::Role::HasRiak';

=head1 DESCRIPTION

Data::Riak::Fast:
ets/%s/keys', $self->name),
        query => { keys => 'true' }
    })->first;

    return decode_json( $result->value )->{'keys'};
}

=head2 count

Count all the keys in a bucket. This uses MapReduce
ce->mapreduce;
    my ( $result ) = $map_reduce_results->results->[0];
    my ( $count ) = decode_json($result->value) || 0;
    return $count->[0];
}

=head2 remove_all

Remove all the keys from a bu
WebService-Shutterstock ( B/BP/BPHILLIPS/WebService-Shutterstock-0.003.tar.gz, BPHILLIPS, 2012; MetaCPAN )
WebService-Shutterstock/lib/WebService/Shutterstock/Image.pm ( view source; MetaCPAN )
,
	sub {
		my $self   = shift;
		my $client = $self->client;
		$client->GET( sprintf( '/images/%s.json', $self->id ) );
		my $data = $client->process_response(404 => sub {
			return { is_available => 
milar {
	my $self = shift;
	my $client = $self->client;
	$client->GET(sprintf('/images/%s/similar.json', $self->id));
	my $images = $client->process_response;
	return [ map { $self->new_with_client( '
a proxy class for the data returned from a URL
like L<http://api.shutterstock.com/images/15484942.json>.  Please look
at that data structure for a better idea of exactly what each of the attributes
in
Rex-Endpoint-HTTP ( J/JF/JFRIED/Rex-Endpoint-HTTP-0.35.0.tar.gz, JFRIED, 2012; MetaCPAN )
Rex-Endpoint-HTTP/lib/Rex/Endpoint/HTTP/Os/Windows/Swap.pm ( view source; MetaCPAN )
:JSON;
use Win32::API;

use Rex::Endpoint::HTTP::Interface::System;

sub free {
   my $self = shift;
   my $memory_info = $self->_iface->get_memory_statistics;
   $self->render_json({ok => Mojo::JSON-
_json({ok => Mojo::JSON->true, max => $memory_info->{swap_size}});
}

sub used {
   my $self = shift;
   my $memory_info = $self->_iface->get_memory_statistics;
   $self->render_json({ok => Mojo::JSON
WebService-Shutterstock ( B/BP/BPHILLIPS/WebService-Shutterstock-0.003.tar.gz, BPHILLIPS, 2012; MetaCPAN )
WebService-Shutterstock/lib/WebService/Shutterstock/SearchResults.pm ( view source; MetaCPAN )
ild__results_data {
	my $self = shift;
	my $client = $self->client;
	$client->GET('/images/search.json', $self->query);
	return $client->process_response;
}


sub page        { return shift->_results_
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

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