Group
Extension

Matches 35358

Leyland ( I/ID/IDOPEREL/Leyland-1.000002.tar.gz, IDOPEREL, 2014; MetaCPAN )
Leyland/lib/Leyland/Exception.pm ( view source; MetaCPAN )
no idea what went wrong",
			mimes => {
				'text/html' => 'error.html',
				'application/json' => 'error.json',
			},
		});

	# or you can create an error that redirects (don't do this unless
	# you 
OAuth2-Google-Plus ( M/MV/MVHENTEN/OAuth2-Google-Plus-0.03.tar.gz, MVHENTEN, 2014; MetaCPAN )
OAuth2-Google-Plus/lib/OAuth2/Google/Plus/UserInfo.pm ( view source; MetaCPAN )
:Google::Plus::UserInfo;
    use Moo;
    use MooX::late;

    use LWP::UserAgent;
    use JSON qw|decode_json|;
    use Carp::Assert;
    use URI;

    has access_token => (
        is         => 'ro
esponse );

        if( $response->is_success ){
            my $json     = decode_json( $response->content );
            return $json;
        }

        return {};
    }

    sub is_success {
     
OAuth2-Google-Plus ( M/MV/MVHENTEN/OAuth2-Google-Plus-0.03.tar.gz, MVHENTEN, 2014; MetaCPAN )
OAuth2-Google-Plus/lib/OAuth2/Google/Plus.pm ( view source; MetaCPAN )
kage OAuth2::Google::Plus;
    use Moo;
    use MooX::late;

    use Carp::Assert;
    use JSON qw|decode_json|;
    use LWP::UserAgent;
    use URI;

    sub ENDPOINT_URL {
        return 'https://ac
onse( $response );

        if( $response->is_success ){
            my $json     = decode_json( $response->content );
            return $json->{access_token};
        }

        return;
    }
}

1;
PLON ( T/TO/TOKUHIROM/PLON-0.08.tar.gz, TOKUHIROM, 2014; MetaCPAN )
PLON/lib/PLON.pm ( view source; MetaCPAN )
the JSON.pm like interface.

=head1 WHY?

I need data dumper library supports JSON::XS/JSON::PP like interface.
I use JSON::XS really hard. Then, I want to use other serialization library with JSON::X
Leyland ( I/ID/IDOPEREL/Leyland-1.000002.tar.gz, IDOPEREL, 2014; MetaCPAN )
Leyland/lib/Leyland/Manual/Exceptions.pod ( view source; MetaCPAN )
n catches the exception and properly serializes it to a format
the client supports, such as HTML, JSON or XML (or plain text when the client
does not support any of these formats). If the request was 
turned to the browser. If the
request was initiated from a JSON client, such as with an AJAX request, then
the error will be returned in JSON format.

=head1 PRETTIFYING EXCEPTIONS

By default, when r
hash-ref passed to C<< $c->exception() >>, you can, for example, add a template
for C<application/json> requests if you see fit.

In the future, I plan to have Leyland make it easier to globally set t
Business-Bitpay ( U/UN/UNDEF/Business-Bitpay-0.05.tar.gz, UNDEF, 2014; MetaCPAN )
Business-Bitpay/lib/Business/Bitpay.pm ( view source; MetaCPAN )
se 5.008_001;
our $VERSION = '0.05';
eval $VERSION;

use HTTP::Request;
use URI;
use JSON qw(encode_json decode_json);
use LWP::UserAgent;
require Carp;

sub new {
    my ($class, $api_key, @args) = @
  if ($data) {
        $method = 'POST';
        $data   = encode_json $data;
        push @fields, 'Content-Type' => 'application/json';
    }

    my $request = HTTP::Request->new(
        $method =
($http_response->status_line)
      unless $http_response->is_success;

    my $response = decode_json($http_response->decoded_content);

    if (my $error = $response->{error}) {
        my $messages
Leyland ( I/ID/IDOPEREL/Leyland-1.000002.tar.gz, IDOPEREL, 2014; MetaCPAN )
Leyland/lib/Leyland/Manual/Views.pod ( view source; MetaCPAN )
the
clients are web browsers, but also RSS/Atom when your clients are
feed readers and maybe even JSON if your platform has some cool AJAX admin
interface to it.

=head1 DATA SERIALIZATION

Before we 
ormat
such as XML or JSON. The reverse process is called deserialization.

Leyland takes care of both processes by itself. If you have resources for
which you wish to generate JSON/XML representations
 'applications/json'> for example, see L<Leyland::Manual::Controllers/"ROUTES">
for more information), and just return the data structure as-is from the
route. If the client accepts JSON/XML, Leyland 
WebService-Redmine ( I/IG/IGELHAUS/WebService-Redmine-0.06.tar.gz, IGELHAUS, 2014; MetaCPAN )
WebService-Redmine/lib/WebService/Redmine.pm ( view source; MetaCPAN )
gs;

our $VERSION = '0.06';

use URI;
use URI::QueryParam;
use LWP::UserAgent;
use JSON::XS qw/encode_json decode_json/;
use Encode   qw/decode/;

=pod

=encoding UTF-8

=head1 NAME

WebService::Redmi
edMine REST API. Please note that although
RedMine API is designed to support both JSON and XML, this module is B<JSON only>.

=head1 METHODS NAMING AND OTHER CALL CONVENTIONS

All methods are dynamic
f->{protocol}://$auth$self->{host}";

	$self->{ua}->default_header('Content-Type' => 'application/json');
	
	if (length $self->{key}) {
		$self->{ua}->default_header('X-Redmine-API-Key' => $self->{key
Leyland ( I/ID/IDOPEREL/Leyland-1.000002.tar.gz, IDOPEREL, 2014; MetaCPAN )
Leyland/lib/Leyland/Manual.pod ( view source; MetaCPAN )
ces to representations in the format your client
wants to receive, like JSON and XML. It will also automatically deserialize
JSON/XML requests coming from the client to Perl data-structures.

=item * 
Leyland ( I/ID/IDOPEREL/Leyland-1.000002.tar.gz, IDOPEREL, 2014; MetaCPAN )
Leyland/lib/Leyland/Parser.pm ( view source; MetaCPAN )
tically available for you here
		$c->template('stuff.html');
	}

	post '^/$' returns 'application/json' {
		# do stuff
	}

	1;

=head1 DESCRIPTION

This module is meant to be used by <Leyland controll
Leyland ( I/ID/IDOPEREL/Leyland-1.000002.tar.gz, IDOPEREL, 2014; MetaCPAN )
Leyland/lib/Leyland.pm ( view source; MetaCPAN )
ces to representations in the format your client
wants to receive, like JSON and XML. It will also automatically deserialize
JSON/XML requests coming from the client to Perl data-structures.

=item * 
he request mime types, let's
	# attempt to serialize the error ourselves if the client accepts
	# JSON or XML
	foreach (@{$c->wanted_mimes}) {
		return $c->_respond(
			$exp->code,
			{ 'Content-Type'
mime} eq 'text/html' ||
			$_->{mime} eq 'application/xhtml+xml' ||
			$_->{mime} eq 'application/json' ||
			$_->{mime} eq 'application/atom+xml' ||
			$_->{mime} eq 'application/xml';
	}

	# We do n
Template-Plugin-React ( F/FB/FBELTON/Template-Plugin-React-0.008.tar.gz, FBELTON, 2014; MetaCPAN )
Template-Plugin-React/lib/Template/Plugin/React.pm ( view source; MetaCPAN )

use base qw(Template::Plugin);
use Template::Plugin;

use Template::Plugin::React::RESimple;
use JSON;
use Encode;

sub from_file {
    my ($fname) = @_;

    my $out = '';
    open my $fh, '<:encodi
tes => $templates
    }, $class;
}

sub render {
    my ($self, $name, $data) = @_;

    my $json = to_json($data // {}, {utf8 => 1});
    my $built = from_file $self->{templates};

    my $res = $sel

$self->{prelude};
var React = global.React;

$built;
return React.renderComponentToString($name($json));

})();
    |);

    if($res) {
        return Encode::decode("utf8", $self->{ctx}->output());
Leyland ( I/ID/IDOPEREL/Leyland-1.000002.tar.gz, IDOPEREL, 2014; MetaCPAN )
Leyland/lib/Leyland/View.pm ( view source; MetaCPAN )
 method receives the name of a view (or "template" if you will, such
as 'index.html' or 'resource.json'), and a hash-ref of variables to be
available for the template (known as the "context"). Leyland
File-OSS-Scan ( H/HA/HARRYWANG/File-OSS-Scan-0.04.tar.gz, HARRYWANG, 2014; MetaCPAN )
File-OSS-Scan/lib/File/OSS/Scan/Matches.pm ( view source; MetaCPAN )
l qw( open close );
use Carp;
use English qw( -no_match_vars );
use Data::Dumper; # for debug
use JSON;

use File::OSS::Scan::Constant qw(:all);

our $VERSION = '0.04';

# global var ...
our $matches 
  $ret = $css . "\n" . $ret;
    }

    return $ret;
}

sub __json {
    my $result = shift;
    my $ret = undef;

    $ret = JSON::to_json( $result, { pretty => 1 } )
    if ( defined $result );

   
Catmandu-Store-DBI ( N/NI/NICS/Catmandu-Store-DBI-0.04.tar.gz, NICS, 2014; MetaCPAN )
Catmandu-Store-DBI/lib/Catmandu/Store/DBI.pm ( view source; MetaCPAN )
tmandu> command line client can be used like this:

    catmandu import JSON to DBI --data_source SQLite:mydb.sqlite < data.json

=head1 DESCRIPTION

A Catmandu::Store::DBI is a Perl package that can 
KiokuDB ( D/DO/DOY/KiokuDB-0.57.tar.gz, DOY, 2014; MetaCPAN )
KiokuDB/lib/KiokuDB/Entry.pm ( view source; MetaCPAN )
ta structure modeling this object/reference. This is a tree, not
a graph, and has no shared data (JSON compliant). All references are symbolic,
using a L<KiokuDB::Reference> object with UIDs as the
ad
KiokuDB ( D/DO/DOY/KiokuDB-0.57.tar.gz, DOY, 2014; MetaCPAN )
KiokuDB/lib/KiokuDB.pm ( view source; MetaCPAN )
 a simplified representation of the object, allowing the data to be
saved in formats as simple as JSON.

References to other objects are converted to symbolic references in the entry,
so objects can b
to pass it in:

    KiokuDB->connect( $dsn, typemap => $typemap );

The DSN can also be a valid L<JSON> string taking one of the following forms:

    dsn => '["dbi:SQLite:foo",{"schema":"MyApp::DB"}]
Cikl ( F/FA/FALTER/Cikl-0.5.1.tar.gz, FALTER, 2014; MetaCPAN )
Cikl/lib/Cikl/Client/Transport.pm ( view source; MetaCPAN )
;
use Scalar::Util qw(blessed);
use Cikl::Codecs::JSON;
use namespace::autoclean;

has 'codec' => (
  is => 'ro',
  default => sub { Cikl::Codecs::JSON->new() } 
);

has 'running' => (
  is => 'rw',
 
KiokuDB ( D/DO/DOY/KiokuDB-0.57.tar.gz, DOY, 2014; MetaCPAN )
KiokuDB/lib/KiokuDB/Tutorial.pod ( view source; MetaCPAN )
a associated with it.

Since the default serializer for the DBI backend is
L<KiokuDB::Serializer::JSON>, we examine the data.

First let's set C<sqlite>'s output mode to C<line>. This is easier to rea
"id":"05A8D61C-6139-4F51-A748-101010CC8B02","root":true}

You'll notice the C<spouse> field has a JSON object with a C<$ref> field inside
it holding the UUID of the target object.

When data is loaded
File-OSS-Scan ( H/HA/HARRYWANG/File-OSS-Scan-0.04.tar.gz, HARRYWANG, 2014; MetaCPAN )
File-OSS-Scan/lib/File/OSS/Scan/Ruleset.pm ( view source; MetaCPAN )

    return SUCCESS;
}


1;



__DATA__

exclude_extension: png jpg gif pdf doc docx html htm xml json xls

# section for directory check
[DIRECTORY]

# section for file check
[FILE]
    100% filename

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