Group
Extension

Matches 35358

WWW-Challonge ( K/KI/KIRBY/WWW-Challonge-1.01.tar.gz, KIRBY, 2015; MetaCPAN )
WWW-Challonge/lib/WWW/Challonge/Tournament.pm ( view source; MetaCPAN )
se WWW::Challonge::Participant;
use WWW::Challonge::Match;
use Carp qw/carp croak/;
use JSON qw/to_json from_json/;

sub __is_kill;
sub __args_are_valid;

=head1 NAME

WWW::Challonge::Tournament - A c


	# Make the PUT request:
	my $response = $client->request(WWW::Challonge::__json_request(
		"$HOST/tournaments/$url.json", "PUT", $params));

	# Check for any errors:
	WWW::Challonge::__handle_error
hallonge::HOST;

	# Make the DELETE call:
	my $response = $client->delete("$HOST/tournaments/$url.json?api_key=$key");

	# Check for any errors:
	WWW::Challonge::__handle_error $response if($response-
Class-Storage ( P/PM/PMORCH/Class-Storage-0.03.tar.gz, PMORCH, 2015; MetaCPAN )
Class-Storage/lib/Class/Storage.pm ( view source; MetaCPAN )
1 SYNOPSIS

This module came into existence out of the need to be able to send I<objects>
over JSON. JSON does not allow any blessed references to be sent by default and
if sent, provides no generic w
ay to resurrect these objects again after
decoding. This can now all be done like this:

    use JSON;
    use Class::Storage qw(packObjects unpackObjects);

    my $object = bless { a => 1 }, 'MyModu
=> 1 }

    print $writeHandle encode_json($packed), "\n";

    # And on the other "side":

    my $jsonString = <$readHandle>;
    my $packed = decode_json($jsonString);
    my $unpackedObject = unpa
WWW-DreamHost-API ( S/ST/STRO/WWW-DreamHost-API-1.07.zip, STRO, 2015; MetaCPAN )
WWW-DreamHost-API/API.pm ( view source; MetaCPAN )
   };

    $self->{'__ua'}->env_proxy();

    # Check if JSON is available
    if (eval { require JSON; }) {
        $self->{'__format'} = 'json';
    } else {
        $self->{'__format'} = 'perl';
  
 {
            my $result;

            if ($self->{'__format'} eq 'json') {
                return unless $result = JSON::from_json($res->content());
            } else {
                ## no critic
liar
with it.

=head1 DEPENDENCIES

LWP::UserAgent
Data::UUID
LWP::protocol::https

If JSON.pm is installed, JSON format is used when making requests to API;
otherwise Data::Dumper format is used. Not
WWW-PlCloud ( M/MC/MCCHEUNG/WWW-PlCloud-0.02.tar.gz, MCCHEUNG, 2015; MetaCPAN )
WWW-PlCloud/lib/WWW/PlCloud.pm ( view source; MetaCPAN )
 VERSION

Version 0.01

=cut

our $VERSION = '0.02';

use Moo;

use LWP::UserAgent;
use JSON qw/to_json from_json/;
use Data::Dumper;

has sessionid => (
  is => 'rw',
);

has csrftoken => (
  is => '
eader( 'Content-Type' => 'application/json' );

  # 必须加额外的这个垃圾头
  $req->header( 'x-csrftoken' => $self->csrftoken );
  $req->content( to_json( \%post ) );

  my $res = $self->ua-
>request( $req );
  if ( $res && $res->is_success ) {
    my $json = from_json( $res->content );
    # 输出数据
    print_result( $json );
  }
}


sub login {
  my $self = shift;
  my $uri = 'http
Amazon-SNS ( Z/ZU/ZUMMO/Amazon-SNS-1.3.tar.gz, ZUMMO, 2015; MetaCPAN )
Amazon-SNS/lib/Amazon/SNS.pm ( view source; MetaCPAN )
::Accessor);

use JSON;

__PACKAGE__->mk_accessors(qw/ sns arn /);

sub Publish
{
	my ($self, $msg, $subj) = @_;

	# XXX croak on invalid arn

	my $structure = undef;

	# support JSON payload
	if (ref
($msg) eq 'HASH') {

		$structure = 'json';
		$msg = encode_json($msg);
	}


	my $r = $self->sns->dispatch({
		'Action'		=> 'Publish',
		'TopicArn'		=> $self->arn,
		'Message'		=> $msg,
		'MessageStru
e JSON;

__PACKAGE__->mk_accessors(qw/ sns arn /);

sub Publish
{
	my ($self, $msg, $subj, $attr) = @_;

	# XXX croak on invalid arn

	my $structure = undef;
	my $attributes = undef;

	# support JSON 
WWW-Challonge ( K/KI/KIRBY/WWW-Challonge-1.01.tar.gz, KIRBY, 2015; MetaCPAN )
WWW-Challonge/lib/WWW/Challonge/Participant.pm ( view source; MetaCPAN )


use 5.010;
use strict;
use warnings;
use WWW::Challonge;
use Carp qw/carp croak/;
use JSON qw/to_json from_json/;

sub __is_kill;
sub __args_are_valid;

=head1 NAME

WWW::Challonge::Participant - A 
e the PUT request:
	my $response = $client->request(WWW::Challonge::__json_request(
		"$HOST/tournaments/$url/participants/$id.json", "PUT", $params));

	# Check for any errors:
	WWW::Challonge::__han
he POST call:
	my $response = $client->request(WWW::Challonge::__json_request(
		"$HOST/tournaments/$url/participants/$id/check_in.json", "POST",
		$params));

	# Check for any errors:
	WWW::Challonge
Mojolicious-Plugin-ConsoleLogger ( T/TE/TEMPIRE/Mojolicious-Plugin-ConsoleLogger-0.06.tar.gz, TEMPIRE, 2015; MetaCPAN )
Mojolicious-Plugin-ConsoleLogger/lib/Mojolicious/Plugin/ConsoleLogger.pm ( view source; MetaCPAN )
onsoleLogger;

use Mojo::Base 'Mojolicious::Plugin';
use Mojo::ByteStream;
use Mojo::JSON qw(decode_json encode_json);

our $VERSION = 0.06;

has logs => sub {
  return {
    fatal => [],
    info  =>
   my $self = shift;
      # Patched Nov 23, 2014 to work with JSON
      return if $self->res->headers->content_type eq 'application/json';
      my $logs = $plugin->logs;

      # Leave static conte
 }
  );
}

sub _format_msg {
  my $msg = shift;

  return ref($msg)
    ? "console.log(" . encode_json($msg) . "); "
    : "console.log(" . Mojo::ByteStream->new($msg)->quote . "); ";
}

1;

=head1 NA
Etcd ( R/RO/ROBN/Etcd-0.004.tar.gz, ROBN, 2015; MetaCPAN )
Etcd/lib/Etcd/Stats.pm ( view source; MetaCPAN )
package Etcd::Stats;
$Etcd::Stats::VERSION = '0.004';
use namespace::autoclean;

use JSON qw(decode_json);
use Carp qw(croak);

use Moo::Role;
use Types::Standard qw(Str);

requires qw(version_prefix 
eader|store|self", [%args])' if !defined $type || $type !~ m/^(?:leader|store|self)$/;
    decode_json($self->api_exec($self->_stats_endpoint."/$type", 'GET', %args)->{content});
}

1;

__END__

=pod
task-belike-est ( E/ES/EST/task-belike-est-0.02.tar.gz, EST, 2015; MetaCPAN )
task-belike-est/lib/Task/BeLike/EST.pod ( view source; MetaCPAN )
p::cpanoutdated>

=item L<Dist::Milla>

=back

=head2 DATA SERIALISER

=over

=item L<JSON::MaybeXS>

=item L<JSON>

=item L<XML::Twig>

=item L<XML::LibXML>

=item L<XML::Toolkit>

=item L<YAML>

=it
POE-Filter-JSONMaybeXS ( G/GE/GETTY/POE-Filter-JSONMaybeXS-0.002.tar.gz, GETTY, 2015; MetaCPAN )
POE-Filter-JSONMaybeXS/lib/POE/Filter/JSONMaybeXS.pm ( view source; MetaCPAN )
package POE::Filter::JSONMaybeXS;
our $AUTHORITY = 'cpan:GETTY';
# ABSTRACT: A POE filter using JSON::MaybeXS
$POE::Filter::JSONMaybeXS::VERSION = '0.002';
use Carp;
use JSON::MaybeXS;

use strict;
us
                  # BUFFER
    JSON::MaybeXS->new( %opts ) # OBJ
  ], ref $class || $class );
}

sub get {
  my ($self, $lines) = @_;
  my $ret = [];

  foreach my $json (@$lines) {
    if ( my $data 
= eval { ($self->[ OBJ ]->decode( $json )) } ) {
      push( @$ret, $data );
    } else {
      warn "Couldn't convert json: $@";
    }
  }
  return $ret;
}

sub get_one_start {
  my ($self, $lines) =
Search-OpenSearch ( K/KA/KARMAN/Search-OpenSearch-0.409.tar.gz, KARMAN, 2015; MetaCPAN )
Search-OpenSearch/lib/Search/OpenSearch/Response.pm ( view source; MetaCPAN )
y' => (
    is  => 'rw',
    isa => Maybe [ Str | InstanceOf ['Search::Query::Dialect'] ]
);
has 'json_query' => ( is => 'rw', isa => Str );
has 'title' => ( is => 'rw', isa => Maybe [Str], builder =>
           => 1,                   # include results
    format      => 'XML',               # or JSON
    b           => 'AND',               # or OR
 );
 print $response;

=head1 DESCRIPTION

Search
=item query

=item parsed_query

As returned by Search::Query.

=item json_query

Same as parsed_query, but the object tree is JSON encoded instead
of stringified.

=item author

=item pps

Pages-per-
Etcd ( R/RO/ROBN/Etcd-0.004.tar.gz, ROBN, 2015; MetaCPAN )
Etcd/lib/Etcd/Error.pm ( view source; MetaCPAN )
package Etcd::Error;
$Etcd::Error::VERSION = '0.004';
use namespace::autoclean;

use JSON qw(decode_json);
use Carp qw(longmess);

use Moo;
use Types::Standard qw(Str Int);

has error_code => ( is => 
a => Str, required => 1 );

sub new_from_http {
    my ($class, $res) = @_;
    my $data = decode_json($res->{content});
    $class->new(%$data, trace => longmess());
}

use overload
    q{""} => sub 
Lego-From-PNG ( G/GA/GAUDEON/Lego-From-PNG-0.04.tar.gz, GAUDEON, 2015; MetaCPAN )
Lego-From-PNG/lib/Lego/From/PNG/View.pm ( view source; MetaCPAN )
= Lego::From::PNG->new({ filename => 'my_png.png' });

  $object->process(view => 'JSON'); # Data is returned as JSON

=head1 DESCRIPTION

Base class for formatting data returned from processing a PNG
Search-OpenSearch ( K/KA/KARMAN/Search-OpenSearch-0.409.tar.gz, KARMAN, 2015; MetaCPAN )
Search-OpenSearch/lib/Search/OpenSearch/Response/ExtJS.pm ( view source; MetaCPAN )
onse::ExtJS;
use Moose;
use Carp;
extends 'Search::OpenSearch::Response::JSON';
use Types::Standard qw( HashRef Bool );
use JSON;
use Sort::SQL;

our $VERSION = '0.409';

has 'metaData' => ( is => 'rw
debug
        ? JSON->new->utf8->pretty(1)->encode($resp)
        : encode_json($resp);
}

1;

__END__

=head1 NAME

Search::OpenSearch::Response::ExtJS - provide search results in JSON format for Ext
de results
    t  => 'ExtJS',             # or JSON, XML
 );
 print $response;

=head1 DESCRIPTION

Search::OpenSearch::Response::ExtJS serializes to JSON suitable
for the ExtJS Javascript library.

=
Search-OpenSearch ( K/KA/KARMAN/Search-OpenSearch-0.409.tar.gz, KARMAN, 2015; MetaCPAN )
Search-OpenSearch/lib/Search/OpenSearch/Response/Tiny.pm ( view source; MetaCPAN )
rch::OpenSearch::Response::Tiny;
use Moose;
use Carp;
extends 'Search::OpenSearch::Response::JSON';
use JSON;

our $VERSION = '0.409';

my %tiny_fields = map { $_ => 1 } qw(
    total
    facets
    r
g
        ? JSON->new->utf8->pretty(1)->encode($resp)
        : encode_json($resp);
}

1;

__END__

=head1 NAME

Search::OpenSearch::Response::Tiny - provide minimal search results in JSON format

=he
 # or JSON, XML, ExtJS
    x   => [qw( foo bar )],     # return only a subset of fields
 );
 print $response;

=head1 DESCRIPTION

Search::OpenSearch::Response::Tiny serializes to a minimal
JSON strin
Search-OpenSearch ( K/KA/KARMAN/Search-OpenSearch-0.409.tar.gz, KARMAN, 2015; MetaCPAN )
Search-OpenSearch/lib/Search/OpenSearch/Facets.pm ( view source; MetaCPAN )
f           => 1,                   # include facets
    format      => 'XML',               # or JSON
 );
 print $response;

=head1 DESCRIPTION

Search::OpenSearch is a framework for various backend 
Search-OpenSearch ( K/KA/KARMAN/Search-OpenSearch-0.409.tar.gz, KARMAN, 2015; MetaCPAN )
Search-OpenSearch/lib/Search/OpenSearch/Engine.pm ( view source; MetaCPAN )
rch::OpenSearch::Facets;
use Search::OpenSearch::Response::XML;
use Search::OpenSearch::Response::JSON;
use Search::OpenSearch::Response::ExtJS;
use Search::OpenSearch::Response::Tiny;
use Search::Too
ols::UTF8;
use Search::Tools;
use CHI;
use Time::HiRes qw( time );
use Data::Dump qw( dump );
use JSON;

use namespace::autoclean;

has 'index' => ( is => 'rw', isa => ArrayRef, );
has 'facets' => (
 
 $self->default_response_format;

    # backwards compat
    if ( $format eq 'xml' or $format eq 'json' ) {
        $format = uc($format);
    }

    my $response_class = $args{response_class}
       
Search-OpenSearch ( K/KA/KARMAN/Search-OpenSearch-0.409.tar.gz, KARMAN, 2015; MetaCPAN )
Search-OpenSearch/lib/Search/OpenSearch/Response/XML.pm ( view source; MetaCPAN )
           => 1,                   # include results
    format      => 'XML',               # or JSON
 );
 print $response;

=head1 DESCRIPTION

Search::OpenSearch::Response::XML serializes to XML fo
SWISH-Filter ( K/KA/KARMAN/SWISH-Filter-0.191.tar.gz, KARMAN, 2015; MetaCPAN )
SWISH-Filter/lib/SWISH/Filter/MIMETypes.pm ( view source; MetaCPAN )
    gz   => 'application/x-gzip',
    htm  => 'text/html',
    html => 'text/html',
    json => 'application/json',
    mp3  => 'audio/mpeg',
    pdf  => 'application/pdf',
    ppt  => 'application/vn
Search-OpenSearch ( K/KA/KARMAN/Search-OpenSearch-0.409.tar.gz, KARMAN, 2015; MetaCPAN )
Search-OpenSearch/lib/Search/OpenSearch.pm ( view source; MetaCPAN )
ude facets
    r   => 1,                   # include results
    t   => 'XML',               # or JSON
    u   => 'http://yourdomain.foo/opensearch/',
    b   => 'AND',               # or OR
    x   =

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