Group
Extension

Matches 35358

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 
WebService-ChatWorkApi ( K/KU/KUNIYOSHI/WebService-ChatWorkApi-0.01.tar.gz, KUNIYOSHI, 2015; MetaCPAN )
WebService-ChatWorkApi/lib/WebService/ChatWorkApi/UserAgent.pm ( view source; MetaCPAN )
 "LWP::UserAgent";
use Carp ( );
use Readonly;
use String::CamelCase qw( camelize );
use URI;
use JSON;
use Mouse;
use Smart::Args;
use Class::Load qw( try_load_class );
use WebService::ChatWorkApi::R
GENT               => sprintf "%s/%s", __PACKAGE__, $VERSION;
Readonly my $CODEC               => JSON->new;
Readonly my $BASE_URL            => "https://api.chatwork.com/v1/";
Readonly my $BASE_RESPO
Brocade-BSC ( P/PR/PRUIKLW/Brocade-BSC-v1.0.4.tar.gz, PRUIKLW, 2015; MetaCPAN )
Brocade-BSC/lib/Brocade/BSC/Node/NC/Vrouter/OvpnIf.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::OvpnIf;

use parent qw(Cl
===
#
=item B<as_json>

  # Returns   : OpenVPN interface configuration as formatted JSON string.

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


# Subroutine ===========================================================
#     
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
WebService-ChatWorkApi ( K/KU/KUNIYOSHI/WebService-ChatWorkApi-0.01.tar.gz, KUNIYOSHI, 2015; MetaCPAN )
WebService-ChatWorkApi/lib/WebService/ChatWorkApi/Response.pm ( view source; MetaCPAN )
rnings;
package WebService::ChatWorkApi::Response;
use parent "HTTP::Response";
use Carp ( );
use JSON;
use HTTP::Status qw( HTTP_NO_CONTENT );

sub _gen_accessor {
    my $class = shift;
    my $key 
hift;
    no strict "refs";
    *{ "$class\::$key" } = sub { shift->get( $key ) };
}

sub codec { JSON->new }

sub limit { shift->header( "X-RateLimit-Limit" ) }

sub remaining { shift->header( "X-Rat
ontent;

=head1 DESCRIPTION

This module provides a few methods to represent ChatWork REST API spec.

Two most things are:

1. response is a JSON
2. 204 No Content at response list is empty (Not []).
Brocade-BSC ( P/PR/PRUIKLW/Brocade-BSC-v1.0.4.tar.gz, PRUIKLW, 2015; MetaCPAN )
Brocade-BSC/lib/Brocade/BSC/Node/NC/Vrouter/VR5600.pm ( view source; MetaCPAN )
_payload:
# Parameters: none
# Returns   : self as JSON formatted for BSC REST call
#
sub get_payload {
    my $self = shift;

    my $json = new JSON->canonical->allow_blessed->convert_blessed;
    m
y $payload = '{"vyatta-interfaces-dataplane:dataplane":'
        . $json->encode($self)
        . '}';
    $payload =~ s/firewall/vyatta-security-firewall:firewall/g;
    $payload =~ s/inlist/in/g;
  
ode::NC);
use HTTP::Status qw(:constants :is status_message);
use URI::Escape qw(uri_escape);
use JSON -convert_blessed_universally;
use Brocade::BSC;
use Brocade::BSC::Status qw(:constants);

=head1 
Brocade-BSC ( P/PR/PRUIKLW/Brocade-BSC-v1.0.4.tar.gz, PRUIKLW, 2015; MetaCPAN )
Brocade-BSC/lib/Brocade/BSC/Node/NC/Vrouter/StaticRoute.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::StaticRoute;

use parent 
_json>

  # Returns   : static route configuration as formatted JSON string.

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


# Subroutine ===========================================================
#             _strip_undef:
App-screenorama ( J/JH/JHTHORSEN/App-screenorama-0.06.tar.gz, JHTHORSEN, 2015; MetaCPAN )
App-screenorama/README.pod ( view source; MetaCPAN )
="screenshot">

=end html

=head2 Protocol

The data transmitted over the websocket connection is JSON in each frame:

=over 4

=item * Startup

  {"program":$str,"program_args":...}

Same as L</progr
Business-OnlinePayment-BitPay-Client ( B/BI/BITPAY/Business-OnlinePayment-BitPay-Client-2.3.1.tar.gz, BITPAY, 2015; MetaCPAN )
Business-OnlinePayment-BitPay-Client/lib/Business/OnlinePayment/BitPay/Client.pm ( view source; MetaCPAN )
quest;
use LWP::Protocol::https;
use Business::OnlinePayment::BitPay::KeyUtils;
use JSON;
use JSON::Parse 'parse_json';
require IO::Socket::SSL;
use Net::SSLeay;
use Data::Dumper;

sub new {
    my $c
$token;
    $response = post($self, path => "invoices", params => $content);
    my $data = parse_json($response->content)->{'data'};
    return %{$data};
}

sub get_invoice{
    my $self = shift;
   
{'public'};
    my $response = get($self, path => $path, public => $public);
    my $data = parse_json($response->content)->{'data'};
    return %{$data};
}

sub get{
    my $self = shift;
    my %opt
Dist-Zilla-Plugin-Doppelgaenger ( D/DA/DAGOLDEN/Dist-Zilla-Plugin-Doppelgaenger-0.008.tar.gz, DAGOLDEN, 2015; MetaCPAN )
Dist-Zilla-Plugin-Doppelgaenger/lib/Dist/Zilla/Plugin/Doppelgaenger.pm ( view source; MetaCPAN )
File::pushd qw/tempd/;
use Path::Class;
use Pod::Strip;
use Archive::Extract;
use HTTP::Tiny;
use JSON;

use namespace::autoclean;

#-------------------------------------------------------------------
) = @_;
    my $mod = $self->source_module;
    my $uri = $self->_cpanidx . join( "/", qw/cpanidx json mod/, $mod );
    my $response = HTTP::Tiny->new->get( "$uri", { headers => { accept => '*' }, } 
 $mod via $uri: $response->{content}\n"
      unless $response->{success};

    my $meta = decode_json( $response->{content} )->[0];

    return $meta->{dist_file};
}

has _short_distfile => (
    is 
Puzzle ( E/EB/EBRUNI/Puzzle-0.21.tar.gz, EBRUNI, 2015; MetaCPAN )
Puzzle/lib/Puzzle/Template.pm ( view source; MetaCPAN )
->all_mason_args} ,%$args};
	return $self->html($as,$file);
}

use Switch;

use Data::Dumper;
use JSON::Any;
use XML::Simple;
use Text::CSV::Slurp;

sub printct {
		print $_[0]->sprintct($_[1], $_[2])

		# coerentemente con il tipo di content-type di uscita
		# supportato per ora, text, html, xml, json
		#

		my $ct = shift || $self->container->_mason->apache_req->content_type;

		my $pl2html = sub
		my $pl2text = sub { return Data::Dumper::Dumper($_[0]) };
		my $pl2json = sub { my $obj =  JSON::Any->new; return $obj->objToJson($_[0]) };
		my $pl2xml 	= sub { return XMLout($_[0]) };
		my $pl2csv
App-cpanreports ( I/IV/IVANWILLS/App-cpanreports-0.004.tar.gz, IVANWILLS, 2015; MetaCPAN )
App-cpanreports/lib/App/cpanreports.pm ( view source; MetaCPAN )
tests to C<$dir> for C<$distname> C<$version> using C<$mech>

=head2 C<meta ()>

Reads the MYMETA.json file to discover details about the current project.

=head1 DIAGNOSTICS

=head1 CONFIGURATION AND
Net-Wigle ( M/MA/MALLRED/Net-Wigle-0.07.tar.gz, MALLRED, 2015; MetaCPAN )
Net-Wigle/lib/Net/Wigle.pm ( view source; MetaCPAN )
the bottom for documentation
package Net::Wigle;

use strict;
use warnings;
use Data::Dumper;
use JSON;
use LWP::UserAgent;
use Params::Validate qw(:all);
use 5.010000;

require Exporter;

our @ISA = 
ur $VERSION = '0.07';
our $url_query_base = 'https://wigle.net/api/v1/jsonSearch';
our $url_login = 'https://wigle.net/api/v1/jsonUser';

sub new {
  my $proto = shift;
  my $class = ref $proto || $pr
# purpose : used to return a parsed/scraped html table
#           now it just returns the parsed json

sub query {
  my $self = shift;
  my %args = validate @_, {
    user => {
      type => SCALAR,
App-screenorama ( J/JH/JHTHORSEN/App-screenorama-0.06.tar.gz, JHTHORSEN, 2015; MetaCPAN )
App-screenorama/lib/App/screenorama.pm ( view source; MetaCPAN )
="screenshot">

=end html

=head2 Protocol

The data transmitted over the websocket connection is JSON in each frame:

=over 4

=item * Startup

  {"program":$str,"program_args":...}

Same as L</progr
Crypt-HSXKPasswd ( B/BA/BARTB/Crypt-HSXKPasswd-v3.6.tar.gz, BARTB, 2015; MetaCPAN )
Crypt-HSXKPasswd/lib/Crypt/HSXKPasswd.pm ( view source; MetaCPAN )
ed data structures - exports clone()
use Readonly; # for truly constant constants
use JSON; # for dealing with JSON strings
use List::MoreUtils qw( uniq ); # for array deduplication
use Type::Tiny; # 
in use.
#              config - a config hashref.
#              config_json - a config as a JSON string (requires that the JSON
#                  module be installed)
#              rng - an object 
on is called in an invalid way, called with
#              invalid args, or called with a JSON string when JSON is not
#              installed.
# Notes      : The order of preference for word sources
Search-OpenSearch-Server ( K/KA/KARMAN/Search-OpenSearch-Server-0.301.tar.gz, KARMAN, 2015; MetaCPAN )
Search-OpenSearch-Server/lib/Search/OpenSearch/Server/Plack.pm ( view source; MetaCPAN )
h::OpenSearch;
use Search::OpenSearch::Result;
use Plack::Request;
use Data::Dump qw( dump );
use JSON;
use Scalar::Util qw( weaken );
use Time::HiRes qw( time );

our $VERSION = '0.301';

sub log {
 
Search-OpenSearch-Server ( K/KA/KARMAN/Search-OpenSearch-Server-0.301.tar.gz, KARMAN, 2015; MetaCPAN )
Search-OpenSearch-Server/lib/Search/OpenSearch/Server.pm ( view source; MetaCPAN )

use Carp;
use Search::OpenSearch;
use Search::OpenSearch::Result;
use Data::Dump qw( dump );
use JSON;
use Time::HiRes qw( time );
use Scalar::Util qw( blessed );
use Try::Tiny;

our $VERSION = '0.30
},
    );
}

# no-op for back-compat
sub setup_engine { }

my %formats = (
    'XML'   => 1,
    'JSON'  => 1,
    'ExtJS' => 1,
    'Tiny'  => 1,
);

sub log {
    my $self = shift;
    warn(@_);
}

 ||= $params->{format} || 'JSON';
        if ( !exists $formats{ $args{t} } ) {
            $self->log("bad format $args{t} -- using JSON");
            $args{format} = 'JSON';
        }

        if (
Search-OpenSearch-Server ( K/KA/KARMAN/Search-OpenSearch-Server-0.301.tar.gz, KARMAN, 2015; MetaCPAN )
Search-OpenSearch-Server/lib/Search/OpenSearch/Result.pm ( view source; MetaCPAN )
package Search::OpenSearch::Result;
use Moose;
use JSON;
use overload
    '""'     => sub { $_[0]->stringify; },
    'bool'   => sub {1},
    fallback => 1;

use namespace::autoclean;

our $VERSION = 
 {
    my $self = shift;

    #Data::Dump::dump($self);
    my $json = encode_json( {%$self} );

    #warn "json=$json";
    return $json;
}

1;

__END__

=head1 NAME

Search::OpenSearch::Result - RES
item doc

=item success

=item msg

=item total

=back

=head2 stringify

Returns the object as a JSON-encoded string.

=head1 AUTHOR

Peter Karman, C<< <karman at cpan.org> >>

=head1 BUGS

Please re
Regexp-Common-VATIN ( R/RS/RSIMOES/Regexp-Common-VATIN-v1.0.tar.gz, RSIMOES, 2015; MetaCPAN )
Regexp-Common-VATIN/lib/Regexp/Common/VATIN.pm ( view source; MetaCPAN )
 easily be
exported for use in a browser-facing web application:

    use JSON qw(encode_json);
    my $patterns = encode_json($RE{VATIN});

=head1 CAVEAT

In keeping with the standard set by the core
MooseX-Role-JSONObject ( R/RO/ROAM/MooseX-Role-JSONObject-v0.1.0.tar.gz, ROAM, 2015; MetaCPAN )
MooseX-Role-JSONObject/lib/MooseX/Role/JSONObject/Util.pm ( view source; MetaCPAN )
#!/usr/bin/perl

package MooseX::Role::JSONObject::Util;

use v5.012;
use strict;
use warnings;

use version; our $VERSION = version->declare("v0.1.0");

use List::Util qw/pairfirst/;
use Method::Sign
tribute $attr)
{
	if (!$attr->has_type_constraint) {
		if (!defined $val) {
			die "MooseX::Role::JSONObject::SKIP\n";
		} elsif (ref $val eq 'ARRAY') {
			return ('array', '*');
		} elsif (ref $val e
, '*');
		}
		return ['*'];
	}

	if (!defined $val && !$attr->is_required) {
		die "MooseX::Role::JSONObject::SKIP\n";
	}
	my $type = $attr->type_constraint;
	my @res;
again:
	my @handlers = (
		'Obje

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