Group
Extension

Matches 35358

WebService-Algolia ( A/AA/AANARI/WebService-Algolia-0.1002.tar.gz, AANARI, 2015; MetaCPAN )
WebService-Algolia/lib/WebService/Algolia.pm ( view source; MetaCPAN )
ldTimeS => 0,
        name           => "foo",
        pendingTask    => bless(do{\(my $o = 0)}, "JSON::PP::Boolean"),
        updatedAt      => "2014-12-04T00:41:14.120Z",
    },
    {
        create
ldTimeS => 0,
        name           => "bar",
        pendingTask    => bless(do{\(my $o = 0)}, "JSON::PP::Boolean"),
        updatedAt      => "2014-12-04T00:42:13.231Z",
    }]

=head2 browse_index
ask_status('foo', 29734242);

B<Response:>

    {
        pendingTask => bless(do{\(my $o = 0)}, "JSON::PP::Boolean"),
        status => "published",
    }

=head2 get_keys

Retrieves global API keys 
WebService-Rakuten-API ( S/SU/SUENAGA/WebService-Rakuten-API-0.06.tar.gz, SUENAGA, 2015; MetaCPAN )
WebService-Rakuten-API/lib/WebService/Rakuten/API.pm ( view source; MetaCPAN )
Service::Rakuten::API;
use 5.008005;
use strict;
use warnings;
use LWP::UserAgent;
use Mouse;
use JSON;
use URI;
our $VERSION = "0.06";
use WebService::Rakuten::API::Provider::Travel;
use WebService::
  appid => __YOURAPI__
  );
   
  my $items = $rakuten->ichiba({keyword => '遊戯王',format => 'json'});

  print $items->{Items}->[0]->{Item}->{itemName};  

=head1 DESCRIPTION

WebService::Rakuten
WebService-Rakuten-API ( S/SU/SUENAGA/WebService-Rakuten-API-0.06.tar.gz, SUENAGA, 2015; MetaCPAN )
WebService-Rakuten-API/lib/WebService/Rakuten/API/Provider/Ichiba.pm ( view source; MetaCPAN )
l->query_form(applicationId => $context->appid,format=>$arg->{format},keyword =>$arg->{keyword});
 my $res = $context->furl->get($url);
 my $response = JSON::decode_json($res->decoded_content);
}

1;
Geo-Coder-TomTom ( G/GR/GRAY/Geo-Coder-TomTom-0.04.tar.gz, GRAY, 2015; MetaCPAN )
Geo-Coder-TomTom/lib/Geo/Coder/TomTom.pm ( view source; MetaCPAN )
package Geo::Coder::TomTom;

use strict;
use warnings;

use Carp qw(croak);
use Encode ();
use JSON;
use LWP::UserAgent;
use URI;

our $VERSION = '0.04';
$VERSION = eval $VERSION;

sub new {
    my ($
=> 'json',
        %params,
    );

    my $res = $self->{response} = $self->ua->get($uri);
    return unless $res->is_success;

    # Change the content type of the response from 'application/json' s

    my $content = $res->decoded_content;
    return unless $content;

    my $data = eval { from_json($content) };
    return unless $data;

    # Result is a list only if there is more than one item
CGI-Plus ( M/MI/MIKO/CGI-Plus-0.15.tar.gz, MIKO, 2015; MetaCPAN )
CGI-Plus/lib/CGI/Plus.pod ( view source; MetaCPAN )

 $cgi->set_header('myheader', 'whatever');

 # change content type
 $cgi->set_content_type('text/json');

 # output HTTP headers, including added cookies, the CSRF cookie,
 # and the new header
 prin
GgpkZ4; path=/
 # Date: Sun, 29 Jul 2012 04:08:06 GMT
 # Myheader: whatever
 # Content-Type: text/json; charset=ISO-8859-1

=head1 INSTALLATION

CGI::Plus can be installed with the usual routine:

 pe
Dist-Zilla-App-Command-weaverconf ( E/ET/ETHER/Dist-Zilla-App-Command-weaverconf-0.05.tar.gz, ETHER, 2015; MetaCPAN )
Dist-Zilla-App-Command-weaverconf/lib/Dist/Zilla/App/Command/weaverconf.pm ( view source; MetaCPAN )
a::App::Command::weaverconf::VERSION = '0.05';
use Dist::Zilla::App -command;
use Moose 0.91;
use JSON::MaybeXS ();
use List::Util qw(first);
use MooseX::Types::Moose qw(Str CodeRef);
use MooseX::Type
ar
#pod output format. The following formats are currently available:
#pod
#pod =for :list
#pod * json
#pod the default
#pod * lisp
#pod a plist of lists of plists
#pod
#pod =cut

has formatters => (
> sub { Dist::Zilla::App::CommandHelper::weaverconf::SExpGen->new->visit($_[0]) },
        json => sub { JSON::MaybeXS->new(utf8 => 1, pretty => 1, canonical => 1)->encode($_[0]) },
    };
}

sub abst
SMS-Send-WebSMS ( A/AB/ABRAXXA/SMS-Send-WebSMS-0.001.tar.gz, ABRAXXA, 2015; MetaCPAN )
SMS-Send-WebSMS/lib/SMS/Send/WebSMS.pm ( view source; MetaCPAN )
SMS service

use Carp;
use HTTP::Tiny;
use URI::Escape qw( uri_escape );
use JSON::MaybeXS qw( decode_json encode_json JSON );

use base 'SMS::Send::Driver';


sub new {
    my $class = shift;
    my 
     # to ensure the response is JSON and not the XML default
            'accept' => 'application/json; charset=utf-8',
            'content-type' => 'application/json; charset=utf-8',
        },
   
nt => encode_json(\%message),
        }
    );

    # for example a timeout error
    die $response->{content}
        unless $response->{success};

    my $response_message = decode_json( $response->
Mojo-Autobox ( J/JB/JBERGER/Mojo-Autobox-0.03.tar.gz, JBERGER, 2014; MetaCPAN )
Mojo-Autobox/lib/Mojo/Autobox/String.pm ( view source; MetaCPAN )
}

sub json {
  require Mojo::JSON;
  require Mojo::JSON::Pointer;
  my $data = Mojo::JSON::decode_json(shift);
  return @_ ? Mojo::JSON::Pointer->new($data)->get(shift) : $data;
}

*j = \&json;

sub 
e_stream->trim;

 # "Text"
 '<p>Text</p>'->dom->at('p')->text;

 # "world"
 '{"hello": "world"}'->json->{hello};
 
 # "anchor"
 'http://mysite.com/path#anchor'->url->fragment;

=head1 DESCRIPTION

Str
ead2 json

Parses the invocant string as JSON using L<Mojo::JSON/decode_json> and returns the result.
Optionally takes a JSON pointer used to delve into the resulting structure using L<Mojo::JSON::Poi
Mojo-Autobox ( J/JB/JBERGER/Mojo-Autobox-0.03.tar.gz, JBERGER, 2014; MetaCPAN )
Mojo-Autobox/lib/Mojo/Autobox.pm ( view source; MetaCPAN )
strict;
 use Mojo::Autobox;

 # "site.com\n"
 '{"html": "<a href=\"http://site.com\"></a>"}'
   ->json('/html')
   ->dom->at('a')->{href}
   ->url->host
   ->byte_stream->say;

=head1 DESCRIPTION

Usi
JRPC ( O/OH/OHOLLMEN/JRPC-0.61.tar.gz, OHOLLMEN, 2014; MetaCPAN )
JRPC/JRPC/Apache2.pm ( view source; MetaCPAN )
);
# qw(OK)
use Apache2::Const -compile => qw(:common); # 'OK', 'DECLINED'
use APR::Table ();
use JSON::XS;
use JRPC; # Import ... ?
*jdie = JRPC::createfault;
#use Storable (); # Would import store -
ache2::RequestUtil;

=head1 NAME

JRPC::Apache2 - JSON-RPC Services in Apache2 / mod_perl runtime

=head1 DESCRIPTION

This package is a mod_perl JSON-RPC handler / dispatcher. It only contains the co
SetHandler modperl
     PerlResponseHandler JRPC::Apache2
   </Location>

=cut
# Parse and handle JSON-RPC Request.
# reads POST body by $r->read($buffer, $len).
# if/else dispatching (of 3 meth) give
Mojo-Autobox ( J/JB/JBERGER/Mojo-Autobox-0.03.tar.gz, JBERGER, 2014; MetaCPAN )
Mojo-Autobox/README.pod ( view source; MetaCPAN )
strict;
 use Mojo::Autobox;

 # "site.com\n"
 '{"html": "<a href=\"http://site.com\"></a>"}'
   ->json('/html')
   ->dom->at('a')->{href}
   ->url->host
   ->byte_stream->say;

=head1 DESCRIPTION

Usi
tntcompat ( U/UN/UNERA/tntcompat-0.4.tar.gz, UNERA, 2014; MetaCPAN )
tntcompat/lib/TntCompat/Server.pm ( view source; MetaCPAN )
tfile';

use TntCompat::Cat::SnapMsgpack;
use TntCompat::Cat::Snap;
use TntCompat::Cat::Xlog;
use JSON::XS;
use File::Basename 'basename';
use feature 'state';


sub strhex($) {
    my ($str) = @_;
  
$res[ $fno ];
                }
            } elsif ('JSON' eq uc $ftype) {

                # TODO: decode str
                $res[ $fno ] = JSON::XS->new->decode($res[ $fno ] );

            } elsi
 string $_->[2];
                }
            } elsif ('JSON' eq uc $type) {

                # TODO: decode str
                $_->[2] = JSON::XS->new->decode($_->[2] );

            } else {
     
JRPC ( O/OH/OHOLLMEN/JRPC-0.61.tar.gz, OHOLLMEN, 2014; MetaCPAN )
JRPC/JRPC/Nginx.pm ( view source; MetaCPAN )
package JRPC::Nginx;
use JRPC;
use JSON::XS;
# require - to avoid symbol resolution problems ?
require nginx; # nginx / Nginx ?
use strict;
use warnings;

our $VERSION = "0.9";

# See Perldoc at the e
.
#This encapsulates the 
#=cut
sub handle_2nd_stage {
   my ($r) = @_;
   my $jr = {'id' => $$, 'jsonrpc' => '2.0', };
   my $buffer = $r->request_body();
   
   eval {
   # Parse Request
   my $j = 
now) that do not serialize
   # well. Be ready to encounter exceptions here.
   my $out = JSON::XS::encode_json($jr); # Serialize as a separate step to know length
   
   ################# Nginx Outpu
Task-BeLike-RJRAY ( R/RJ/RJRAY/Task-BeLike-RJRAY-0.009.tar.gz, RJRAY, 2014; MetaCPAN )
Task-BeLike-RJRAY/lib/Task/BeLike/RJRAY.pm ( view source; MetaCPAN )
 L<DBI>

=head3 L<DBD::SQLite>

=head2 Data Manipulation

=head3 L<Const::Fast>

=head3 L<JSON>

=head3 L<JSON::XS>

=head3 L<List::MoreUtils>

=head3 L<Regexp::Common>

=head3 L<XML::LibXML>

=head3 
WebService-Mandrill ( L/LE/LEV/WebService-Mandrill-0.8.tar.gz, LEV, 2014; MetaCPAN )
WebService-Mandrill/lib/WebService/Mandrill.pm ( view source; MetaCPAN )
);
    $self->strict_ssl(1);
    $self->content_type('application/json');
    $self->default_method('POST');
    $self->extension('json');
    $self->base_url('https://mandrillapp.com/api/1.0');
    $
JRPC ( O/OH/OHOLLMEN/JRPC-0.61.tar.gz, OHOLLMEN, 2014; MetaCPAN )
JRPC/JRPC/Client.pm ( view source; MetaCPAN )
 Send Requests to a JSON-RPC Service.
# We completely ride on the wonderful LWP Module.
{
package JRPC::Client;
#
use LWP;
use LWP::UserAgent;
use base ('LWP::UserAgent');
use JSON::XS;
use Data::Dump
er;

#our $mime;
#BEGIN {
# De-facto JSON-RPC Mime type
our $mime = 'application/json';
#};

=head1 NAME

JRPC::Client - JSON-RPC 2.0 Client

=head1 SYNOPSIS

   use JRPC::Client;

   my $client = JRP
so'}\n");

=head1 DESCRIPTION

JRPC::Client is a Perl LWP based JSON-RPC 2.0 Client hoping to minimize tedious boilerplate code for JSON-RPC
interaction, yet enabling advanced use cases by the power o
Thrust ( F/FR/FRACTAL/Thrust-0.200.tar.gz, FRACTAL, 2014; MetaCPAN )
Thrust/lib/Thrust.pm ( view source; MetaCPAN )
mon::sense;

our $VERSION = '0.200';

use AnyEvent;
use AnyEvent::Util;
use AnyEvent::Handle;
use JSON::XS;
use File::ShareDir;
use Scalar::Util;
use Alien::Thrust;

use Thrust::Window;



our $THRUST
 ($level, $msg_cb, $to_dump, $indent) = @_;

  return if $level > $ENV{THRUST_DEBUG};

  $js ||=  JSON::XS->new->pretty->canonical;

  my $out = "\n" . $msg_cb->() . "\n";

  $out .= $js->encode($to_d
  my $line_handler; $line_handler = sub {
    my ($hdl, $line) = @_;

    my $msg = eval { decode_json($line) };

    if (defined $msg) {

      debug(1, sub { "<<<<<<<<<<<<<<<<< Message from thrust s
Bio-Taxonomy-GlobalNames ( D/DG/DGKONTOP/Bio-Taxonomy-GlobalNames-0.07.tar.gz, DGKONTOP, 2014; MetaCPAN )
Bio-Taxonomy-GlobalNames/lib/Bio/Taxonomy/GlobalNames.pm ( view source; MetaCPAN )
ge Bio::Taxonomy::GlobalNames;

use 5.10.0;
use strict;
use warnings;

use JSON qw(encode_json);
use JSON::Parse qw(parse_json);
use LWP::UserAgent;
use Moo::Lax;
use REST::Client;
use Scalar::Readonl
sing a REST client, 
input is sent to the service, whereas results are internally converted 
from JSON format to nested objects and returned to the user.

This module can be used for automated standar
resolvers.json';
    }
    elsif ( _check_status('http://resolver.globalnames.biodinfo.org') )
    {
        $gnr_url =
          'http://resolver.globalnames.biodinfo.org/name_resolvers.json';
    }
App-CPANTS-Lint ( I/IS/ISHIGAKI/App-CPANTS-Lint-0.05.tar.gz, ISHIGAKI, 2014; MetaCPAN )
App-CPANTS-Lint/bin/cpants_lint.pl ( view source; MetaCPAN )
qw/:config gnu_compat/;
use Pod::Usage;

GetOptions(\my %opts, qw(
  help|? man verbose dump yaml json colour|color save|to_file dir=s metrics_path=s@
));

pod2usage(1) if $opts{help};
pod2usage(-exit
sult using Data::Dumper
        --yaml              dump result as YAML
        --json              dump result as JSON

        --save              write report (or dump) to a file
        --dir     
tead of displaying a report text).

=head2 --yaml

Dump the result as YAML.

=head2 --json

Dump the result as JSON.

=head3 --save

Output the result into a file instead of STDOUT.

The name of the f
JRPC ( O/OH/OHOLLMEN/JRPC-0.61.tar.gz, OHOLLMEN, 2014; MetaCPAN )
JRPC/JRPC.pm ( view source; MetaCPAN )
#{
package JRPC;
use JSON::XS;
use Data::Dumper;
use strict;
use warnings;

#UNUSED:my $rstub = {'id' => 66666, 'jsonrpc' => '2.0'};
our $VERSION = '0.61';
# 0 = No validation (trust client, any excep
Require 'id','jsonrpc', 3 
our $msgvalid = 1;
# This is prelogger callback. MUST be a _hard_ CODE ref to be used (not symbolic reference).
our $prelogger;

=head1 NAME

JRPC - Create JSON-RPC Services
 focusing on app logic, not worrying about the details of JSON-RPC Processing.

=head1 SYNOPSIS

   use JRPC;
   # Load one of the Service modules JRPC::CGI, JRPC::Apache2 or JRPC::Nginx
   # See part

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