Group
Extension

Matches 35358

Mojolicious-Plugin-Nour-Database ( A/AM/AMIRITE/Mojolicious-Plugin-Nour-Database-0.09.tar.gz, AMIRITE, 2014; MetaCPAN )
Mojolicious-Plugin-Nour-Database/lib/Mojolicious/Plugin/Nour/Database.pm ( view source; MetaCPAN )
sh, l.direction
             order by l.language_code
        | )->hashes;
        $self->render( json => $list );
    }

Or:

    sub list {
        my $self = shift;
        my $list = $self->db( 'a
 from audio.reciter r
             order by r.english
        | )->hashes;
        $self->render( json => $list );
    }

This module uses L<Nour::Database> which is a wrapper for L<DBIx::Simple> to p
Mojolicious-Plugin-CacheMoney ( A/AM/AMIRITE/Mojolicious-Plugin-CacheMoney-0.03.tar.gz, AMIRITE, 2014; MetaCPAN )
Mojolicious-Plugin-CacheMoney/lib/Mojolicious/Plugin/CacheMoney.pm ( view source; MetaCPAN )
  , namespace => decamelize( ref $app ) .':'. $app->mode
        , serializer => { serializer => 'JSON::XS', compress => 1 }
    };
    $app->attr( __chi => sub {
        return new CHI ( %{ $opts->{ 
ace => decamelize( ref $self ) .':'. $self->mode
                , serializer => { serializer => 'JSON::XS', compress => 1 }
            }
        } );
    }

then

    package App::Example;
    use M
me_results;
            return $res;
        }, expires_in => 60 );
        return $self->render( json => { res1 => $res1, res3 => $res3, also_res1 => $also_res1, res2 => $res2 } );
    }

See L<CHI> 
Text-Md2Inao ( G/GF/GFUJI/Text-Md2Inao-0.11.tar.gz, GFUJI, 2014; MetaCPAN )
Text-Md2Inao/lib/Text/Md2Inao/Builder/InDesign.pm ( view source; MetaCPAN )
Md2Inao') }) {
        if (-d $dir) {
            $self->load_filter_config(path($dir, 'id_filter.json'));
            last;
        }
    }
    return $self;
}

sub prepend_metadata {
    my ($self, 
Akamai-Open-DiagnosticTools ( P/PR/PROBST/Akamai-Open-DiagnosticTools-0.02.tar.gz, PROBST, 2014; MetaCPAN )
Akamai-Open-DiagnosticTools/lib/Akamai/Open/DiagnosticTools.pm ( view source; MetaCPAN )
ai::Open::DiagnosticTools::VERSION = '0.02';
use strict;
use warnings;
use v5.10;

use Moose;
use JSON;

#XXX create a useful scheme for REST methods
use constant {
    TOOLS_URI  => '/diagnostic-tool
(sprintf('HTTP response code for dig() call is %s', $self->response->code()));
    $data = decode_json($self->response->content());
    given($self->response->code()) {
        when($_ == 200) {
     
(sprintf('HTTP response code for mtr() call is %s', $self->response->code()));
    $data = decode_json($self->response->content());
    given($self->response->code()) {
        when($_ == 200) {
     
WWW-Jawbone-Up ( A/AB/ABERNDT/WWW-Jawbone-Up-1.32.4.tar.gz, ABERNDT, 2014; MetaCPAN )
WWW-Jawbone-Up/lib/WWW/Jawbone/Up/Score/Move.pm ( view source; MetaCPAN )
WWW::Jawbone::Up::Score::Move;

use 5.010;
use strict;
use warnings;

use base 'WWW::Jawbone::Up::JSON';

__PACKAGE__->add_accessors(
  qw(distance active_time longest_active longest_idle));
__PACKAGE
WWW-Jawbone-Up ( A/AB/ABERNDT/WWW-Jawbone-Up-1.32.4.tar.gz, ABERNDT, 2014; MetaCPAN )
WWW-Jawbone-Up/lib/WWW/Jawbone/Up/Workout.pm ( view source; MetaCPAN )
age WWW::Jawbone::Up::Workout;

use 5.010;
use strict;
use warnings;

use base 'WWW::Jawbone::Up::JSON';

__PACKAGE__->add_accessors(qw(title), { complete => 'is_complete' });

__PACKAGE__->add_time_a
WWW-Jawbone-Up ( A/AB/ABERNDT/WWW-Jawbone-Up-1.32.4.tar.gz, ABERNDT, 2014; MetaCPAN )
WWW-Jawbone-Up/lib/WWW/Jawbone/Up/Feed.pm ( view source; MetaCPAN )
ackage WWW::Jawbone::Up::Feed;

use 5.010;
use strict;
use warnings;

use base 'WWW::Jawbone::Up::JSON';

use DateTime;

__PACKAGE__->add_accessors(
  qw(title date type reached_goal), {
    timezone 
Text-Md2Inao ( G/GF/GFUJI/Text-Md2Inao-0.11.tar.gz, GFUJI, 2014; MetaCPAN )
Text-Md2Inao/lib/Text/Md2Inao/Builder.pm ( view source; MetaCPAN )
d2Inao::Builder;
use utf8;
use strict;
use warnings;

use Class::Accessor::Fast qw/antlers/;

use JSON;
use Path::Tiny;

has dispatch_table => ( is => 'rw' );

has before_filter_config  => ( is => 'rw
ult};
}

sub load_filter_config {
    my ($self, $path) = @_;
    my $json = path($path)->slurp;
    my $config = decode_json $json;
    for (qw/before_filter after_filter/) {
        if ($config->{$_
WWW-Jawbone-Up ( A/AB/ABERNDT/WWW-Jawbone-Up-1.32.4.tar.gz, ABERNDT, 2014; MetaCPAN )
WWW-Jawbone-Up/lib/WWW/Jawbone/Up/User.pm ( view source; MetaCPAN )
ackage WWW::Jawbone::Up::User;

use 5.010;
use strict;
use warnings;

use base 'WWW::Jawbone::Up::JSON';

__PACKAGE__->add_accessors(
  qw(first last name short_name), {
    friend => 'user_is_friend'
Bundle-CygwinVendor ( R/RU/RURBAN/Bundle-CygwinVendor-0.02.tar.gz, RURBAN, 2014; MetaCPAN )
Bundle-CygwinVendor/CygwinVendor.pm ( view source; MetaCPAN )
ocket::SSL		1.981

LWP::Protocol::https	6.04

common::sense		3.72

Types::Serialiser	1.0

JSON::XS		3.01

JSON			2.90

Metabase::Client::Simple 0.009

Data::UUID		1.219

Data::GUID		0.048

CPAN::Distn
Amon2-Plugin-Web-ChromeLogger ( B/BA/BAYASHI/Amon2-Plugin-Web-ChromeLogger-0.03.tar.gz, BAYASHI, 2014; MetaCPAN )
Amon2-Plugin-Web-ChromeLogger/lib/Amon2/Plugin/Web/ChromeLogger.pm ( view source; MetaCPAN )
SPATCH' => sub {
        $_[0]->{chrome_logger} = Web::ChromeLogger->new(
            json_encoder => $conf->{json_encoder},
        );
    });

    $c->add_trigger('AFTER_DISPATCH' => sub {
        $
By default, this plugin is disabled under PLACK_ENV:production environment.

=head2 json_encoder

You can pass C<json_encoder> to L<WEB::ChromeLogger>.


=head1 REPOSITORY

Amon2::Plugin::Web::ChromeL
Mojolicious-Plugin-DumpyLog ( A/AM/AMIRITE/Mojolicious-Plugin-DumpyLog-0.01.tar.gz, AMIRITE, 2014; MetaCPAN )
Mojolicious-Plugin-DumpyLog/lib/Mojolicious/Plugin/DumpyLog.pm ( view source; MetaCPAN )
oo = ( bar => 'baz' );
        $self->debug( "foo", "bar", "baz", \%foo );
        $self->render( json => [] );
    }

=for :stopwords cpan testmatrix url annocpan anno bugtracker rt cpants kwalitee d
App-GitHubWebhooks2Ikachan ( M/MO/MOZNION/App-GitHubWebhooks2Ikachan-0.10.tar.gz, MOZNION, 2014; MetaCPAN )
App-GitHubWebhooks2Ikachan/lib/App/GitHubWebhooks2Ikachan.pm ( view source; MetaCPAN )
kachan;
use 5.008005;
use strict;
use warnings;
use Encode qw/encode_utf8/;
use Getopt::Long;
use JSON;
use Log::Minimal;
use LWP::UserAgent;
use Plack::Builder;
use Plack::Runner;
use Plack::Request;
pe' => 'text/plain', 'Content-Length' => 18], ['Payload is nothing']];
    }
    my $dat = decode_json($payload);

    if ($self->{debug}) {
        infof("Payload: %s", $payload);
    }

    my $even
Leyland ( I/ID/IDOPEREL/Leyland-1.000002.tar.gz, IDOPEREL, 2014; MetaCPAN )
Leyland/lib/Leyland/Context.pm ( view source; MetaCPAN )
TTP request and Leyland response

use Moo;
use namespace::clean;

use Carp;
use Data::Dumper;
use JSON;
use Leyland::Exception;
use Leyland::Logger;
use Module::Load;
use Text::SpanningTable;
use Try:
nvenience. You will use the C<set_user()> method
to set the value of this attribute.

=head2 json

A L<JSON::Any> object for usage by routes as they see fit.

=head2 xml

An L<XML::TreePP> object for 
eq 'Leyland::Logger' }
);

has 'json' => (
	is => 'ro',
	isa => sub { die "json must be a JSON object" unless ref $_[0] && ref $_[0] eq 'JSON' },
	default => sub { JSON->new->utf8(0)->convert_blessed 
WWW-Pushover ( O/OG/OGATA/WWW-Pushover-0.01.tar.gz, OGATA, 2014; MetaCPAN )
WWW-Pushover/lib/WWW/Pushover.pm ( view source; MetaCPAN )
    => eval {
    return 0 if HAVE_HTTP_TINY; # unnecessary
    require LWP::UserAgent; 1;
};
use JSON::PP;

use constant ENDPOINT_URL   => 'https://api.pushover.net';
use constant HTTP_TIMEOUT   => 1
my $res = $self->_http_get( ENDPOINT_URL . '/1/sounds.json?token=' . $self->{token} );
    if ( $res->{success} ) {
        my $data = $self->_json_parser->decode($res->{content});
        my @sounds 
Sounds API is failed.";
    }
}

# JSON Parser accessor
sub _json_parser {
    my $self = shift;
    $self->{json_parser} ||= JSON::PP->new();
    return $self->{json_parser};
}

# Browser accessor
su
Leyland ( I/ID/IDOPEREL/Leyland-1.000002.tar.gz, IDOPEREL, 2014; MetaCPAN )
Leyland/lib/Leyland/Manual/Applications.pod ( view source; MetaCPAN )
layouts/ (required)
	|----------- main.html (required)
	|----- i18n/
	|-------- es.json
	|-------- he_and_it.coll.json

The C<app.psgi> file is a standard L<PSGI> application that configures and
initi
ews and templates reside. These will
mostly be HTML templates, but can actually be anything, even JSON or XML
or whatever. Views and templates are handled by Leyland's view classes,
and are rendered a
irectory. Once again, this is optional and
purely a suggestion. If used, this directory will hold JSON localization
files for localizing your application with L<Locale::Wolowitz>. See
L<Leyland::Manua
WWW-Pushover ( O/OG/OGATA/WWW-Pushover-0.01.tar.gz, OGATA, 2014; MetaCPAN )
WWW-Pushover/blib/lib/WWW/Pushover.pm ( view source; MetaCPAN )
    => eval {
    return 0 if HAVE_HTTP_TINY; # unnecessary
    require LWP::UserAgent; 1;
};
use JSON::PP;

use constant ENDPOINT_URL   => 'https://api.pushover.net';
use constant HTTP_TIMEOUT   => 1
my $res = $self->_http_get( ENDPOINT_URL . '/1/sounds.json?token=' . $self->{token} );
    if ( $res->{success} ) {
        my $data = $self->_json_parser->decode($res->{content});
        my @sounds 
Sounds API is failed.";
    }
}

# JSON Parser accessor
sub _json_parser {
    my $self = shift;
    $self->{json_parser} ||= JSON::PP->new();
    return $self->{json_parser};
}

# Browser accessor
su
Leyland ( I/ID/IDOPEREL/Leyland-1.000002.tar.gz, IDOPEREL, 2014; MetaCPAN )
Leyland/lib/Leyland/Manual/Controllers.pod ( view source; MetaCPAN )
s look at a pretty complete example:

	get '^/posts$' accepts 'text/html|application/json' returns 'application/json' {
		my @posts = MyDatabase->load_posts();
		return { posts => \@posts };
	}

The a
hat
has an empty prefix). It will only accept C<text/html> or C<application/json>
from the client, and will only return JSON. The following HTTP methods
are available:

=over

=item * get: for C<GET> 
.

	post '^/posts$' returns 'application/json' {
		my @posts = $c->forward('GET:/posts');
		# do stuff with @posts
	}

	get '^/posts$' returns 'application/json' is 'internal' {
		return MyDatabase->l
Leyland ( I/ID/IDOPEREL/Leyland-1.000002.tar.gz, IDOPEREL, 2014; MetaCPAN )
Leyland/lib/Leyland/Manual/Localization.pod ( view source; MetaCPAN )
e.
This is why I created L<Locale::Wolowitz>, which is a very simple localization
system based on JSON. This is also the reason why, as opposed to logging
and view classes, Leyland only provides C<Loc
Leyland ( I/ID/IDOPEREL/Leyland-1.000002.tar.gz, IDOPEREL, 2014; MetaCPAN )
Leyland/lib/Leyland/Manual/Upgrading.pod ( view source; MetaCPAN )
new; # = MyLeylandApp

=item * Leyland no longer uses L<JSON::Any> as its JSON object. It now uses L<JSON> (which will automatically load L<JSON::XS> if available). The interface should be the same, b
robably should be aware of this change. Note, also, that C<convert_blessed> is now enabled on the JSON object.

=item * Leyland is now L<Moo>-based instead of L<Moose>-based, so it is much lighter tha

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