Group
Extension

Matches 35359

Lim ( J/JE/JELU/Lim-0.20.tar.gz, JELU, 2015; MetaCPAN )
Lim/lib/Lim/RPC/Protocol/HTTP.pm ( view source; MetaCPAN )
onstants);
use HTTP::Request ();
use HTTP::Response ();
use LWP::MediaTypes ();
use Fcntl ();
use JSON::XS ();

use Lim ();
use Lim::Util ();
use Lim::RPC::Callback ();

use base qw(Lim::RPC::Protocol
1 NAME

...

=head1 VERSION

See L<Lim> for version.

=cut

our $VERSION = $Lim::VERSION;
our $JSON = JSON::XS->new->utf8->convert_blessed;

=head1 SYNOPSIS

...

=head1 SUBROUTINES/METHODS

=head2 In
      $cb->cb->($response);
            return 1;
        }
        
        if (defined $query->{jsonpCallback}) {
            my ($content, $buf);
            while (sysread(FILE, $buf, 64*1024)) {
Browsermob-Proxy ( G/GE/GEMPESAW/Browsermob-Proxy-0.17.tar.gz, GEMPESAW, 2015; MetaCPAN )
Browsermob-Proxy/lib/Browsermob/Proxy.pm ( view source; MetaCPAN )
use JSON;
use Net::HTTP::Spore;
use Net::HTTP::Spore::Middleware::DefaultParams;
use Net::HTTP::Spore::Middleware::Format::Text;


my $spec = {
    name => 'BrowserMob Proxy',
    formats => ['json'],
[
                'port'
            ],
            description => 'Create a new proxy. Returns a JSON object {"port": your_port} on success"'
        },
        delete_proxy => {
            method =
equired_params => [
                'port'
            ],
            description => 'returns the JSON/HAR content representing all the HTTP traffic passed through the proxy'
        },
        auth_b
Net-HTTP-Spore-Middleware-Format-Text ( G/GE/GEMPESAW/Net-HTTP-Spore-Middleware-Format-Text-0.01.tar.gz, GEMPESAW, 2015; MetaCPAN )
Net-HTTP-Spore-Middleware-Format-Text/lib/Net/HTTP/Spore/Middleware/Format/Text.pm ( view source; MetaCPAN )
VERSION

version 0.01

=head1 SYNOPSIS

    my $client = Net::HTTP::Spore->new_from_spec('twitter.json');
    $client->enable('Format::Text');

=head1 DESCRIPTION

Net::HTTP::Spore::Middleware::Format
Lim ( J/JE/JELU/Lim-0.20.tar.gz, JELU, 2015; MetaCPAN )
Lim/lib/Lim/Error.pm ( view source; MetaCPAN )
$_[0];
}

=item $hash_ref = $error->TO_JSON

Returns a hash reference describing the error, this is to support passing
objects to L<JSON::XS>.

=cut

sub TO_JSON {
    {
        'Lim::Error' => {
    
Lim ( J/JE/JELU/Lim-0.20.tar.gz, JELU, 2015; MetaCPAN )
Lim/lib/Lim/Util/DBI.pm ( view source; MetaCPAN )

use common::sense;
use Carp;
use Scalar::Util qw(weaken);

use Log::Log4perl ();
use DBI ();
use JSON::XS ();

use AnyEvent ();
use AnyEvent::Util ();

use Lim ();

=encoding utf8

=head1 NAME

Lim::
%args = ( @_ );
    my $self = {
        logger => Log::Log4perl->get_logger($class),
        json => JSON::XS->new->utf8->convert_blessed,
        busy => 0
    };
    bless $self, $class;
    weaken
   $response = $self->{json}->incr_parse($buf);
                    };
                    if ($@) {
                        Lim::DEBUG and $self->{logger}->debug('Response JSON parse failed: ', $@);
Brocade-BSC ( P/PR/PRUIKLW/Brocade-BSC-v1.0.4.tar.gz, PRUIKLW, 2015; MetaCPAN )
Brocade-BSC/lib/Brocade/BSC/Node/NC/Vrouter/Firewall.pm ( view source; MetaCPAN )
strict;
use warnings;

use Exporter;
our @ISA = qw(Exporter);
our @EXPORT_OK = qw(Firewall);

use JSON -convert_blessed_universally;

#-----------------------------------------------------------------
====
#
=item B<as_json>

  # Returns   : pretty-printed JSON string representing Firewall object.

=cut ===================================================================
sub as_json {
    my $self =
 shift;

    my $json = new JSON->canonical->allow_blessed->convert_blessed;
    return $json->pretty->encode($self);
}

# Method ===============================================================
#
# Pa
Lim ( J/JE/JELU/Lim-0.20.tar.gz, JELU, 2015; MetaCPAN )
Lim/lib/Lim/RPC/Protocol/REST.pm ( view source; MetaCPAN )
essed weaken);

use HTTP::Status qw(:constants);
use HTTP::Request ();
use HTTP::Response ();
use JSON::XS ();

use Lim ();
use Lim::Util ();
use Lim::RPC::Callback ();

use base qw(Lim::RPC::Protocol
1 NAME

...

=head1 VERSION

See L<Lim> for version.

=cut

our $VERSION = $Lim::VERSION;
our $JSON = JSON::XS->new->utf8->convert_blessed;
our %REST_CRUD = (
    GET => 'READ',
    PUT => 'UPDATE',
 
ad1 SUBROUTINES/METHODS

=head2 Init

=cut

sub Init {
    if (Lim::Config->{rpc}->{json}->{pretty}) {
        $JSON->pretty(1);
    }
}

=head2 Destroy

=cut

sub Destroy {
}

=head2 name

=cut

sub 
Browsermob-Proxy ( G/GE/GEMPESAW/Browsermob-Proxy-0.17.tar.gz, GEMPESAW, 2015; MetaCPAN )
Browsermob-Proxy/lib/Browsermob/Server.pm ( view source; MetaCPAN )
rl client to control the Browsermob Proxy server
use strict;
use warnings;
use Moo;
use Carp;
use JSON;
use LWP::UserAgent;
use IO::Socket::INET;
use Browsermob::Proxy;


has path => (
    is => 'rw',
_addr . ':' . $self->server_port . '/proxy');
    if ($res->is_success) {
        my $list = from_json($res->decoded_content)->{proxyList};

        my @proxies = map {
            $_->{port};
       
Catalyst-Plugin-ResponseFrom ( J/JJ/JJNAPIORK/Catalyst-Plugin-ResponseFrom-0.003.tar.gz, JJNAPIORK, 2015; MetaCPAN )
Catalyst-Plugin-ResponseFrom/lib/Catalyst/Plugin/ResponseFrom.pm ( view source; MetaCPAN )
e_from(
                POST => '/',
                'Content-Type:' => 'text/json',
                'Content:' => '{ "json": "here" }',
              );

=item a L<Catalyst::Action> instance + option
Lim ( J/JE/JELU/Lim-0.20.tar.gz, JELU, 2015; MetaCPAN )
Lim/lib/Lim.pm ( view source; MetaCPAN )
ense;
use Carp;

use YAML::Any ();

=encoding utf8

=head1 NAME

Lim - Framework for RESTful JSON/XML, JSON-RPC, XML-RPC and SOAP

=head1 VERSION

Version 0.20

=cut

our $VERSION = '0.20';
our $CONFI
  verify_require_client_cert => 1,
            ca_path => '/etc/lim/ssl/certs'
        },
        json => {
            pretty => 0
        }
    },
    agent => {
        config_file => '',
        u
 over multiple protocols.

It uses AnyEvent for async operations and SOAP::Lite, XMLRPC::Lite and JSON::XS
for processing protocol messages.

There are 3 parts in Lim that can work independenly, a Ser
Brocade-BSC ( P/PR/PRUIKLW/Brocade-BSC-v1.0.4.tar.gz, PRUIKLW, 2015; MetaCPAN )
Brocade-BSC/lib/Brocade/BSC/Node/OF/Switch.pm ( view source; MetaCPAN )
gexp::Common;   # balanced paren matching
use HTTP::Status qw(:constants :is status_message);
use JSON -convert_blessed_universally;

=head1 METHODS

=cut

# Constructor ==============================
s = $1) =~ s/flow-node-inventory:flow-feature-capability-//g);
        $feature_info_ref = decode_json($features);
        $status->code($BSC_OK);
    }
    else {
        $status->http_err($resp);
  
        my $node_connector_json = ($resp->content =~ /$RE{balanced}{-keep}{-begin => "\"node-connector\":\["}{-end => "]"}/ && $1);
        @port_list = ($node_connector_json =~ /\"flow-node-inventory
Captcha-reCAPTCHA-V2 ( P/PA/PATTAWAN/Captcha-reCAPTCHA-V2-0.3.tar.gz, PATTAWAN, 2015; MetaCPAN )
Captcha-reCAPTCHA-V2/lib/Captcha/reCAPTCHA/V2.pm ( view source; MetaCPAN )
package Captcha::reCAPTCHA::V2;

use strict;
use warnings;

use Carp;
use HTTP::Tiny;
use JSON;

# ABSTRACT: A Perl implementation of reCAPTCHA API version 2

our $VERSION = '0.3'; # VERSION


sub new
ptcha_script {
    my ($self, $sitekey, $options) = @_;

    my $json_options = to_json({ sitekey => $sitekey, %$options }, $self->{json_options} || {});

    return '<script type="text/javascript">va
r onloadCallback = function(){grecaptcha.render(\''
        . _element_id($sitekey) . '\',' . $json_options . ');};</script>';
}


sub html {
    my ($self, $sitekey, $options) = @_;

    $options ||=
Brocade-BSC ( P/PR/PRUIKLW/Brocade-BSC-v1.0.4.tar.gz, PRUIKLW, 2015; MetaCPAN )
Brocade-BSC/lib/Brocade/BSC/Node/NC/Vrouter/VPN.pm ( view source; MetaCPAN )
er controlled
by a Brocade::BSC controller.

=cut

use strict;
use warnings;

use Data::Walk;
use JSON -convert_blessed_universally;

package Brocade::BSC::Node::NC::Vrouter::VPN;

use parent qw(Clone
m B<as_json>

  # Returns   : VPN as formatted JSON string.

=cut ===================================================================
sub as_json {
    my $self = shift;
    my $json = new JSON->canon
ical->allow_blessed->convert_blessed;
    return $json->pretty->encode($self);
}


# Subroutine ===========================================================
#             _strip_undef: remove all keys 
String-Snip ( J/JE/JETEVE/String-Snip-0.002.tar.gz, JETEVE, 2015; MetaCPAN )
String-Snip/lib/String/Snip.pm ( view source; MetaCPAN )

If you use that on structured data (like a JSON structure), this might render your
data invalid. For instance if you have a large base64 string in your JSON, it will be broken
by this. To avoid this 
Text-XLogfile ( E/ET/ETHER/Text-XLogfile-0.06.tar.gz, ETHER, 2015; MetaCPAN )
Text-XLogfile/lib/Text/XLogfile.pm ( view source; MetaCPAN )
 Crawl communities. CSV is too
ill-defined. XML is too heavyweight. I'd say the same for YAML and JSON.

=head1 FUNCTIONS

=head2 read_xlogfile FILENAME => ARRAY OF HASHREFS

Takes a file and parses i
Queue-Gearman ( K/KA/KARUPA/Queue-Gearman-0.01.tar.gz, KARUPA, 2015; MetaCPAN )
Queue-Gearman/lib/Queue/Gearman.pm ( view source; MetaCPAN )
n - Queue like low-level interface for Gearman.

=head1 SYNOPSIS

    use Queue::Gearman;
    use JSON;

    sub add {
        my $args = shift;
        return $args->{left} + $args->{rigth};
    }

 
           => ['127.0.0.1:6667'],
        serialize_method   => \&JSON::encode_json,
        deserialize_method => \&JSON::decode_json,
    );
    $queue->can_do('add');

    my $task = $queue->enqueu
Brocade-BSC ( P/PR/PRUIKLW/Brocade-BSC-v1.0.4.tar.gz, PRUIKLW, 2015; MetaCPAN )
Brocade-BSC/lib/Brocade/BSC/Node.pm ( view source; MetaCPAN )
tworking controller.

=cut

package Brocade::BSC::Node;

use strict;
use warnings;

use YAML;
use JSON -convert_blessed_universally;

=head1 METHODS

=cut

# Constructor ==============================
===========
#
=item B<as_json>

  # Returns   : Returns pretty-printed JSON string representing netconf node.

=cut
sub as_json {
    my $self = shift;
    my $json = new JSON->canonical->allow_blesse
d->convert_blessed;
    return $json->pretty->encode($self);
}


# Method ===============================================================
#
=item B<ctrl_req>

  # Parameters: $method (string, req) HTT
Perl-ToPerl6 ( J/JG/JGOFF/Perl-ToPerl6-0.040.tar.gz, JGOFF, 2015; MetaCPAN )
Perl-ToPerl6/Build.PL.pl6 ( view source; MetaCPAN )
PANTS.txt
            Makefile
            Makefile.old
            MANIFEST.bak
            META.json
            META.yml
            pm_to_blib
            README
        >,
    ],
);

$builder.cre
Brocade-BSC ( P/PR/PRUIKLW/Brocade-BSC-v1.0.4.tar.gz, PRUIKLW, 2015; MetaCPAN )
Brocade-BSC/lib/Brocade/BSC.pm ( view source; MetaCPAN )
tatus qw(:constants);

use YAML;
use LWP;
use HTTP::Status qw(:constants :is status_message);
use JSON -convert_blessed_universally;
use XML::Parser;
use Carp::Assert;

=head1 METHODS

=cut

# Constru
s_json>

  # Returns pretty-printed JSON string representing BSC object.

=cut
sub as_json {
    my $self = shift;
    my $json = new JSON->canonical->allow_blessed->convert_blessed;
    return $json-
p->code == HTTP_OK) {
        if ($resp->content =~ /\"nodes\"/) {
            my $nodes = decode_json($resp->content)->{nodes}->{node};
            if (! $nodes) {
                $status->code($BSC_
CPAN-Testers-Data-Generator ( B/BA/BARBIE/CPAN-Testers-Data-Generator-1.21.tar.gz, BARBIE, 2015; MetaCPAN )
CPAN-Testers-Data-Generator/lib/CPAN/Testers/Data/Generator.pm ( view source; MetaCPAN )
ation;
use File::Basename;
use File::Path;
use File::Slurp;
use HTML::Entities;
use IO::File;
use JSON;
use Time::Local;

use Metabase    0.004;
use Metabase::Fact;
use Metabase::Resource;
use CPAN::T
a::FlexSerializer->new(
        detect_compression  => 1,
        detect_json         => 1,
        output_format       => 'json'
    );
    $self->{serializer2} = Data::FlexSerializer->new(
        d
me = ref $fact;
        $facts{$name} = $fact->as_struct;
        $facts{$name}{content} = decode_json($facts{$name}{content});
    }

    return \%facts;
}

sub parse_report {
    my ($self,%hash) = 

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