Group
Extension

Matches 35358

Tool-Bench ( N/NO/NOTBENH/Tool-Bench-0.003.tar.gz, NOTBENH, 2013; MetaCPAN )
Tool-Bench/lib/Tool/Bench.pm ( view source; MetaCPAN )
format => 'Text'); # uses Tool::Bench::Report::Text
  $bench->report(format => 'JSON'); # uses Tool::Bench::Report::JSON

By using class names you can build your own report simply, see 
L<Tool::Bench:
WWW-Fimfiction ( C/CT/CTHOR/WWW-Fimfiction-v0.3.7.tar.gz, CTHOR, 2013; MetaCPAN )
WWW-Fimfiction/lib/WWW/Fimfiction.pm ( view source; MetaCPAN )
L::TreeBuilder;
use LWP::UserAgent;
use HTTP::Cookies;
use XML::Twig;
use Carp 'croak';
use JSON 'decode_json';

our $VERSION = 'v0.3.7';

=head1 NAME

WWW::Fimfiction - CRUD tasks for fimfiction.net
@_;

	my $res = $self->_get("http://www.fimfiction.net/api/story.php?story=$id");

	return decode_json($res->decoded_content)->{story};
}

=head1 AUTHOR

Cameron Thornton E<lt>cthor@cpan.orgE<gt>

=he
CouchDB-Utils ( B/BA/BARTENDER/CouchDB-Utils-0.3.tar.gz, BARTENDER, 2013; MetaCPAN )
CouchDB-Utils/lib/CouchDB/Utils/App/Command/dump.pm ( view source; MetaCPAN )
arnings;
package CouchDB::Utils::App::Command::dump;

use App::Cmd::Setup -command;

use URI;
use JSON::XS;
use File::Path qw(mkpath);
use File::Spec::Functions qw(rel2abs catdir catfile);
use AnyEven

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

	## this will be used to pretty format json
        my $json = JSON->new->allow_nonref->pretty;

	my $name = $args->[0]; ## database name
	## unspecified
 => $start, ids => \@ids };
		}

		## pretty json formating makes it easier to edit the docs once
		## they are on the file system
		my $pretty_doc = $json->encode($doc); 
		_dump(catfile($doc_dir,'do
Catalyst-TraitFor-Controller-jQuery-jqGrid-Search ( K/KE/KESZLER/Catalyst-TraitFor-Controller-jQuery-jqGrid-Search-0.02.tar.gz, KESZLER, 2013; MetaCPAN )
Catalyst-TraitFor-Controller-jQuery-jqGrid-Search/lib/Catalyst/TraitFor/Controller/jQuery/jqGrid/Search.pm ( view source; MetaCPAN )
package Catalyst::TraitFor::Controller::jQuery::jqGrid::Search;

use 5.008;

use Moose::Role;
use JSON;

our $VERSION = '0.02';

my %qOp = (
    'eq' => { pre => '',  post => '',  op => '=', },       
{} unless $params->{_search} eq 'true';
  if ( $params->{filters} ) {
    return _complex_search( JSON->new->decode( $params->{filters} ) );
  }
  elsif ( $params->{searchField} ) {

    # Simple sear
 used to page
through data obtained from a back-end database. Ajax calls to the back-end
retrieve JSON data. See L<http://www.trirand.com/blog/>

This module provides a helper function to translate th
CouchDB-Utils ( B/BA/BARTENDER/CouchDB-Utils-0.3.tar.gz, BARTENDER, 2013; MetaCPAN )
CouchDB-Utils/lib/CouchDB/Utils/App/Command/load.pm ( view source; MetaCPAN )
ct;
use warnings;
package CouchDB::Utils::App::Command::load;

use App::Cmd::Setup -command;

use JSON;
use MIME::Base64;
use File::Basename;
use File::Slurp qw(read_file);
use File::Spec::Functions q

		$uri->port($opt->{port});
		$uri->path($name);
	}

	my $db = couchdb($uri->as_string);
	my $json = JSON->new->allow_nonref->pretty;

	my @docs;
	opendir (my $dh, $path) || die $!;
	while (my $f = r

			my $doc_path = catfile($path, $id, 'doc');
			open DOC, ">$doc_path" or die $!;
			print DOC $json->encode($doc);
			close DOC;

		} elsif ($load->{error}) {
			warn "$load->{id} $load->{error}: $
Tool-Bench ( N/NO/NOTBENH/Tool-Bench-0.003.tar.gz, NOTBENH, 2013; MetaCPAN )
Tool-Bench/script/bench.pl ( view source; MetaCPAN )
' --file 't/01-works.t' --count 3 --format JSON

=head1 TODO

needs docs

=cut

die qx{perldoc $0} unless @ARGV;

my ($count,$format,$interp,$file) = (1,'JSON'); #supply defaults;
my $opt = GetOptions
Dancer-Plugin-Auth-Github ( G/GI/GIDEON/Dancer-Plugin-Auth-Github-0.04.tar.gz, GIDEON, 2013; MetaCPAN )
Dancer-Plugin-Auth-Github/lib/Dancer/Plugin/Auth/Github.pm ( view source; MetaCPAN )
FATAL => 'all';
use Carp 'croak';

use Digest::SHA qw(sha256_hex);
use LWP::UserAgent;
use JSON qw(decode_json);


our $VERSION = '0.04';

my $client_id;
my $client_secret;
my $scope = "";
my $github_
get("https://api.github.com/user?access_token=$acc");
			my $json = decode_json($jresp->decoded_content);
			session 'github_user' => $json;
			session 'github_access_token' => $acc;
			#session 'logg
Tool-Bench ( N/NO/NOTBENH/Tool-Bench-0.003.tar.gz, NOTBENH, 2013; MetaCPAN )
Tool-Bench/talk/ex3.pl ( view source; MetaCPAN )
=> sub{$naptime = rand(10)},
                               teardown => sub{$naptime = 1},
                             },
                 );
$bench->run(3);
print $bench->report(format => 'JSON'); 
Plack-Middleware-Session-SerializedCookie ( C/CI/CINDY/Plack-Middleware-Session-SerializedCookie-1.03.tar.gz, CINDY, 2013; MetaCPAN )
Plack-Middleware-Session-SerializedCookie/lib/Plack/Middleware/Session/SerializedCookie.pm ( view source; MetaCPAN )
 original data.

There are several well-known serialization method, such as L<Data::Dumper>,
L<JSON>, L<YAML>, L<PHP::Serialization>, L<Data::DumpXML>, etc. Each of them
has different benefits and
its. You should read their documents
for more information.

My favorite one is L<JSON>. It will try to use L<JSON::XS> when availible.
This one is both efficient and simple. Though you can only st
lessed object,
tied data, nor references that refer to the same variable or cyclic references (L<JSON>
will extract them independently and completely).

=item base64

It's not allowed to use all
AnyEvent-Twitter ( P/PU/PUNYTAN/AnyEvent-Twitter-0.64.tar.gz, PUNYTAN, 2013; MetaCPAN )
AnyEvent-Twitter/lib/AnyEvent/Twitter.pm ( view source; MetaCPAN )
nt::Twitter;
use strict;
use warnings;
use utf8;
use 5.008;
our $VERSION = '0.64';

use Carp;
use JSON;
use URI;
use URI::Escape;
use Digest::SHA;
use Time::Piece;
use AnyEvent::HTTP;
use HTTP::Reques
;

our %RESOURCE_URL_BASE = (
    '1.0' => 'http://api.twitter.com/1/%s.json',
    '1.1' => 'https://api.twitter.com/1.1/%s.json',
);

sub new {
    my ($class, %args) = @_;

    $args{api_version}   
    my $cb = pop;
    my ($self, $endpoint, $params) = @_;

    my $type = $endpoint =~ /^http.+\.json$/ ? 'url' : 'api';
    $self->request($type => $endpoint, method => 'GET', params => $params, $cb
AI-MicroStructure-Relations ( S/SA/SANTEX/AI-MicroStructure-Relations-0.003.tar.gz, SANTEX, 2013; MetaCPAN )
AI-MicroStructure-Relations/lib/AI/MicroStructure/Relations.pm ( view source; MetaCPAN )
nsole qw(format_pretty);
use Data::Dumper;
use AI::MicroStructure::Cache;
use WWW::Wikipedia;
use JSON::XS;
use Statistics::Basic qw(:all);

our $VERSION = '0.01';
our $supports = {};
our $scale = 1;
qx_nonblock);
        my $micosense = qx_nonblock("micro-sense $next")->recv;
        my $sense = JSON::XS->new->pretty(1)->decode($micosense);
        delete($sense->{rows}->{search});
        
     
Task-XNLSoar-Graphing ( N/NG/NGLENN/Task-XNLSoar-Graphing-0.03.tar.gz, NGLENN, 2013; MetaCPAN )
Task-XNLSoar-Graphing/lib/Task/XNLSoar/Graphing.pm ( view source; MetaCPAN )
only to retrieve prerequisites

=head3 L<GraphViz>

=head2 Only necessary if you want JSON graphing

=head3 L<JSON::XS>

=head1 AUTHOR

Nathan Glenn <garfieldnate@gmail.com>

=head1 COPYRIGHT AND LICE
Validation-Class ( A/AW/AWNCORP/Validation-Class-7.900015.tar.gz, AWNCORP, 2013; MetaCPAN )
Validation-Class/lib/Validation/Class/Intro.pod ( view source; MetaCPAN )
 ./generate_jsapi > app.api.js

    use MyApp::Introspect;
    
    use JSON;
    
    my $classes = {};
    
    my $json = JSON->new->allow_blessed->convert_blessed->pretty([1]);
    
    my $intros
ields) = each(%{$classes})) {
    
        $namespace =~ s/::/./;
        
        my $objects = $json->encode($fields);
        
        chomp $objects;
        
        print "$namespace = $objects;
Hubot ( A/AA/AANOAA/Hubot-0.1.3.tar.gz, AANOAA, 2013; MetaCPAN )
Hubot/lib/Hubot/Scripts/tweet.pm ( view source; MetaCPAN )
t::Scripts::tweet;
{
  $Hubot::Scripts::tweet::VERSION = '0.1.3';
}
use strict;
use warnings;
use JSON::XS;

sub load {
    my ( $class, $robot ) = @_;
    $robot->hear(
        qr/https?:\/\/(mobile\
ps://api.twitter.com/1/statuses/show/'
                  . $msg->match->[1]
                  . '.json' )->get(
                sub {
                    my ( $body, $hdr ) = @_;
                    r
^2/ );
                    print "$body\n" if $ENV{DEBUG};
                    my $tweet = decode_json($body);
                    $msg->send("$tweet->{user}{screen_name}: $tweet->{text}");
          
WebService-IMDBAPI ( A/AR/ARJONES/WebService-IMDBAPI-1.130030.tar.gz, ARJONES, 2013; MetaCPAN )
WebService-IMDBAPI/lib/WebService/IMDBAPI.pm ( view source; MetaCPAN )
erAgent;
use JSON;

# default options
use constant DEFAULT_USER_AGENT => 'Mozilla/5.0';
use constant DEFAULT_LANG       => 'en-US';

use constant BASE_URL => 'http://imdbapi.org/?type=json';

use Obje
earch($options);
    if ( $response->is_success ) {

        my @results;
        for ( @{ decode_json( $response->content ) } ) {
            my $result = WebService::IMDBAPI::Result->new( %{$_} );
 
nse->is_success ) {

        my $result = WebService::IMDBAPI::Result->new(
            %{ decode_json( $response->content ) } );
        return $result;
    }
    else {
        die $response->status
App-MP4Meta ( A/AR/ARJONES/App-MP4Meta-1.130020.tar.gz, ARJONES, 2013; MetaCPAN )
App-MP4Meta/lib/App/MP4Meta/Source/OMDB.pm ( view source; MetaCPAN )
();

use constant NAME     => 'OMDB';
use constant PLOT     => 'short';
use constant RESPONSE => 'json';

sub new {
    my $class = shift;
    my $args  = shift;
    my $self  = $class->SUPER::new($ar
Mojolicious-Plugin-Toto ( B/BD/BDUGGAN/Mojolicious-Plugin-Toto-0.23.tar.gz, BDUGGAN, 2013; MetaCPAN )
Mojolicious-Plugin-Toto/lib/Mojolicious/Plugin/Toto.pm ( view source; MetaCPAN )
                    #    [ { name => 'foo', href => 'bar' }, ]
                        $c->render_json( $results );
                      } => "$object/autocomplete");
            }
        }
        
Hubot ( A/AA/AANOAA/Hubot-0.1.3.tar.gz, AANOAA, 2013; MetaCPAN )
Hubot/lib/Hubot.pod ( view source; MetaCPAN )
o '["help"]' > hubot-scripts.json
    $ hubot
    hubot> hubot help
    hubot> exit

=head1 DESCRIPTION

=head2 CONFIGURATION

describe scripts name to F<hubot-scripts.json>

example)

    [
      "he
WebService-Pushwoosh ( M/MC/MCARTMELL/WebService-Pushwoosh-0.02.tar.gz, MCARTMELL, 2013; MetaCPAN )
WebService-Pushwoosh/lib/WebService/Pushwoosh.pm ( view source; MetaCPAN )
SCRIPTION

L<Pushwoosh|http://www.pushwoosh.com/> is a push notification service which
provides a JSON API for users of its premium account. This module provides a
simple Perl wrapper around that API.
the possible error codes.

=back

=cut

our $VERSION = '0.02';

use Carp;
use Furl;
use JSON qw(from_json to_json);
use Params::Validate qw(validate validate_with validate_pos :types);
use Try::Tiny;
@_,
		{ app_code  => 1,
			api_token => 1,
			api_url   => { default => 'https://cp.pushwoosh.com/json/1.3' },
			furl      => 0,
			error_mode => { default => 'croak' },
		}
	);
	$args{furl} ||= Furl
WebService-KoreanSpeller ( A/AE/AERO/WebService-KoreanSpeller-0.010.tar.gz, AERO, 2012; MetaCPAN )
WebService-KoreanSpeller/lib/WebService/KoreanSpeller.pm ( view source; MetaCPAN )
ror in the text, this method will return empty list), See SYNOPSIS. you can easily convert AoH to JSON or XML.

=head1 CAUTION

I'm afraid we don't have a good open source korean spell checker. but th

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