Group
Extension

Matches 35358

Devel-Cover-Report-OwnServer ( P/PJ/PJFL/devel-cover-report-ownserver/Devel-Cover-Report-OwnServer-0.4.1.tar.gz, PJFL, 2016; MetaCPAN )
Devel-Cover-Report-OwnServer/lib/Devel/Cover/Report/OwnServer.pm ( view source; MetaCPAN )
printf '0.4.%d', q$Rev: 1 $ =~ /\d+/gmx );

use Getopt::Long;
use HTTP::Tiny;
use JSON::PP qw( decode_json encode_json );

my $URI_TEMPLATE = 'http://localhost:5000/coverage/report/%s';

# Private sub
Content-Type' => 'application/json' } );
   my $uri     = sprintf $config->{option}->{uri_template}, lc $dist;
   my $resp    = $http->post( $uri, { content => encode_json $report } );

   if ($resp->
{success}) {
      my $content = decode_json $resp->{content};

      print $content->{message}."\n";
   }
   else {
      warn 'Coverage upload status '.$resp->{status}.': '.$resp->{reason}."\n";
   
IdcheckioPerl-Client ( D/DJ/DJAGOUDEL/IdcheckioPerl-Client-1.0.3.1.tar.gz, DJAGOUDEL, 2016; MetaCPAN )
IdcheckioPerl-Client/lib/IdcheckioPerl/Client/Object/ImageIndicator.pm ( view source; MetaCPAN )
l::Client::Object::ImageIndicator;

require 5.6.0;
use strict;
use warnings;
use utf8;
use JSON qw(decode_json);
use Data::Dumper;
use Module::Runtime qw(use_module);
use Log::Any qw($log);
use Date::
# return perl hash
sub to_hash {
    return decode_json(JSON->new->convert_blessed->encode( shift ));
}

# used by JSON for serialization
sub TO_JSON { 
    my $self = shift;
    my $_data = {};
    f
 deserialize the data
    while ( my ($_key, $_type) = each %{$self->swagger_types} ) {
    	my $_json_attribute = $self->attribute_map->{$_key}; 
        if ($_type =~ /^array\[/i) { # array
        
IdcheckioPerl-Client ( D/DJ/DJAGOUDEL/IdcheckioPerl-Client-1.0.3.1.tar.gz, DJAGOUDEL, 2016; MetaCPAN )
IdcheckioPerl-Client/lib/IdcheckioPerl/Client/Role.pm ( view source; MetaCPAN )
arget/swagger-codegen-cli.jar generate \
  -i [URL or file path to JSON swagger API spec] \
  -l perl \
  -c /path/to/config/file.json \
  -o /path/to/output/folder

Bang, all done. Run the C<autodoc>
Bot-ChatBots-Messenger ( P/PO/POLETTIX/Bot-ChatBots-Messenger-0.004.tar.gz, POLETTIX, 2016; MetaCPAN )
Bot-ChatBots-Messenger/lib/Bot/ChatBots/Messenger/WebHook.pm ( view source; MetaCPAN )
} ## end sub normalize_record

sub parse_request {
   my ($self, $req) = @_;

   my $data = $req->json;
   return unless $data->{object} eq 'page';

   local $Data::Dumper::Indent = 1;
   my @updates;
Boolean-Converter ( K/KA/KARUPA/Boolean-Converter-0.01.tar.gz, KARUPA, 2016; MetaCPAN )
Boolean-Converter/lib/Boolean/Converter.pm ( view source; MetaCPAN )
ETHODS = (
    'JSON::PP'           => sub { $_[0] ? JSON::PP::true()          : JSON::PP::false()          },
    'JSON::XS'           => sub { $_[0] ? JSON::XS::true()          : JSON::XS::false()  
verter;

    my $converter = Boolean::Converter->new();

    my $booelan = $converter->convert_to(JSON::PP::true, 'Data::MessagePack');
    # => Data::MessagePack::true

=head1 DESCRIPTION

Boolean::C
Dist-Zilla-Plugin-Test-ReportMetadata ( P/PJ/PJFL/dist-zilla-plugin-test-reportmetadata/Dist-Zilla-Plugin-Test-ReportMetadata-0.5.1.tar.gz, PJFL, 2016; MetaCPAN )
Dist-Zilla-Plugin-Test-ReportMetadata/lib/Dist/Zilla/Plugin/Test/ReportMetadata.pm ( view source; MetaCPAN )
 dynamic prereqs to the included modules list (if we can)
my ($source)      = grep { -f } 'MYMETA.json', 'MYMETA.yml';

if ($source and $has_cpan_meta) {
   if (my $meta = eval { CPAN::Meta->load_file
WebService-DigitalOcean ( A/AN/ANDRE/WebService-DigitalOcean-0.026.tar.gz, ANDRE, 2016; MetaCPAN )
WebService-DigitalOcean/lib/WebService/DigitalOcean.pm ( view source; MetaCPAN )
s the DigitalOcean RESTful API (v2)
use Moo;
use Types::Standard qw/Str/;
use LWP::UserAgent;
use JSON ();
use DateTime;
use utf8;

with
    'WebService::DigitalOcean::Role::UserAgent',
    'WebServic
Net-Marathon ( T/TY/TYNOVSKY/Net-Marathon-0.1.0.tar.gz, TYNOVSKY, 2016; MetaCPAN )
Net-Marathon/lib/Net/Marathon/Group.pm ( view source; MetaCPAN )
package Net::Marathon::Group;

use strict;
use warnings;
use parent 'Net::Marathon::Remote';
use JSON::XS;

sub new {
    my ($class, $conf, $parent) = @_;
    my $self = bless {};
    $conf = {} unle
/v2/groups', $self->get_updateable_values);
    if ( $response ) {
        $self->version( decode_json($response)->{version} );
        return $self;
    } 
    return undef;
}

sub update {
    my ($
f->id . $self->_uri_args($args), $payload);
    if ( $response ) {
        $self->version( decode_json($response)->{version} );
        return $self;
    } 
    return undef;
}

sub delete {
    my ($
Bot-ChatBots-Messenger ( P/PO/POLETTIX/Bot-ChatBots-Messenger-0.004.tar.gz, POLETTIX, 2016; MetaCPAN )
Bot-ChatBots-Messenger/lib/Bot/ChatBots/Messenger/Sender.pm ( view source; MetaCPAN )
',
      %args,
      ua_args => [
         $self->_url,
         {Accept => 'application/json'},
         json => $message,
         ($args{callback} ? $args{callback} : ()),
      ],
   );
} ## end 
Net-Marathon ( T/TY/TYNOVSKY/Net-Marathon-0.1.0.tar.gz, TYNOVSKY, 2016; MetaCPAN )
Net-Marathon/lib/Net/Marathon.pm ( view source; MetaCPAN )
package Net::Marathon;

use 5.006;
use strict;
use warnings;
use LWP::UserAgent;
use JSON::XS;
use Net::Marathon::App;
use Net::Marathon::Group;
use Net::Marathon::Events;
use Net::Marathon::Deploymen
tp://mesosphere.github.io/marathon/docs/rest-api.html), so it can be used without having to write JSON by hand.

For the most common tasks, there is a helper method in the main module. Some additional
( $status ) {
        $status = '?status='.$status;
    }
    my $task_obj = $self->_get_obj_from_json('/v2/tasks'.$status);
    my $task_arrayref = ( defined $task_obj && exists $task_obj->{tasks} &&
WebService-DigitalOcean ( A/AN/ANDRE/WebService-DigitalOcean-0.026.tar.gz, ANDRE, 2016; MetaCPAN )
WebService-DigitalOcean/lib/WebService/DigitalOcean/Role/UserAgent.pm ( view source; MetaCPAN )
t;
# ABSTRACT: User Agent Role for DigitalOcean WebService
use Moo::Role;
use LWP::UserAgent;
use JSON ();
use DateTime;
use Types::Standard qw/is_HashRef/;
use utf8;

our $VERSION = '0.026'; # VERSIO
 = (
        'Authorization' => 'Bearer ' . $self->token,
        'Content-Type'  => 'application/json; charset=utf-8',
    );

    my $ua = LWP::UserAgent->new(
        agent           => 'WebService
 ) = @_;

    my $full_url     = $self->api_base_url . $uri;
    my $encoded_data = $data ? JSON::encode_json($data) : undef;
    my $headers      = undef;

    return HTTP::Request->new( $method, $fu
BalanceOfPower ( C/CY/CYMON/BalanceOfPower-0.400115.tar.gz, CYMON, 2016; MetaCPAN )
BalanceOfPower/lib/BalanceOfPower/Role/WebMaster.pm ( view source; MetaCPAN )
::WebMaster::VERSION = '0.400115';
use strict;
use v5.10;
use Moo::Role;

use LWP::UserAgent;
use JSON;
use Data::Dumper;
use File::Path qw(make_path remove_tree);

use BalanceOfPower::Utils qw(prev_t
onse->decoded_content;
        }
        else
        {
            my $json = JSON->new->allow_nonref;
            return $json->decode( $response->decoded_content );
        }
    }
    else {
     
Plack-Middleware-AccessLog-Structured-ZeroMQ ( M/MS/MSTOCK/Plack-Middleware-AccessLog-Structured-ZeroMQ-0.001001.tar.gz, MSTOCK, 2016; MetaCPAN )
Plack-Middleware-AccessLog-Structured-ZeroMQ/lib/Plack/Middleware/AccessLog/Structured/ZeroMQ.pm ( view source; MetaCPAN )
AccessLog::Structured::ZeroMQ is a
L<Plack::Middleware|Plack::Middleware> which sends structured, JSON-encoded log
messages into a ZeroMQ message queue. It is a subclass of
L<Plack::Middleware::Access
Dancer2-Serializer-JSONMaybeXS ( D/DB/DBOOK/Dancer2-Serializer-JSONMaybeXS-0.003.tar.gz, DBOOK, 2016; MetaCPAN )
Dancer2-Serializer-JSONMaybeXS/lib/Dancer2/Serializer/JSONMaybeXS.pm ( view source; MetaCPAN )
2::Serializer::JSONMaybeXS;

use Moo;
use JSON::MaybeXS ();

our $VERSION = '0.003';

with 'Dancer2::Core::Role::Serializer';

has '+content_type' => ( default => sub {'application/json;charset=UTF-8'
} );

sub BUILD {
	warnings::warnif('deprecated',
		'Dancer2::Serializer::JSONMaybeXS is deprecated and should no longer be used');
}

sub serialize {
	my ($self, $entity, $options) = @_;
	
	my $confi
tions->{utf8};
	
	JSON::MaybeXS->new($options)->encode($entity);
}

sub deserialize {
	my ($self, $entity, $options) = @_;
	
	$options->{utf8} = 1 if !defined $options->{utf8};
	JSON::MaybeXS->new($op
Jq ( I/IN/INGY/Jq-0.01.tar.gz, INGY, 2016; MetaCPAN )
Jq/lib/jq.pod ( view source; MetaCPAN )
IPTION

Jq is a data language for querying and manipulating JSON data. It takes JSON
as input; queries and manipulates; and then prints JSON as output.

Jq.pm is a Perl module binding to Jq. It's inpu
ts and outputs are Perl data
abjects that can be represented as JSON.

=head1 STATUS

The current version of Jq uses IPC::Run to invoke your local C<jq> binary.
This is an API compatible workaround un
Jq ( I/IN/INGY/Jq-0.01.tar.gz, INGY, 2016; MetaCPAN )
Jq/lib/Jq.pm ( view source; MetaCPAN )
e JSON;

use Exporter 'import';
our @EXPORT = qw(jq);

sub jq {
    my ($filter, @data) = @_;
    my @jq = ('jq', "$filter");
    my ($in, $out, $err);
    for my $value (@data) {
        $in .= JSON:
:encode_json($value) . "\n";
    }
    run \@jq, \$in, \$out, \$err, timeout(10)
        or die "jq: $?, $err";
    my $result = JSON::decode_json("[$out]");

    return wantarray ? @$result : $result
Mojolicious-Command-generate-routes_restsful ( B/BY/BYTEROCK/Mojolicious-Command-generate-routes_restsful-0.02.tar.gz, BYTEROCK, 2016; MetaCPAN )
Mojolicious-Command-generate-routes_restsful/lib/Mojolicious/Command/generate/routes_restsful.pm ( view source; MetaCPAN )
ld').", Child_id=".$self->param('child_id'))
  #  if ($self->param('child'));
 
   $self->render( json => {'<%=$class %>-<%=$action%>'=>'Stub!',id=>$self->param('id'),child_id=>$self->param('child_id'
MobileDetect ( S/SE/SENGER/MobileDetect-1.21.tar.gz, SENGER, 2016; MetaCPAN )
MobileDetect/lib/MobileDetect.pm ( view source; MetaCPAN )
nghita/Mobile-Detect/blob/master/Mobile_Detect.json
#
use 5.006;
use strict;
no strict "subs";
use warnings FATAL => 'all';
no warnings qw/misc/;
use JSON;
use LWP::Protocol::https;
use LWP::UserAgent
;
use constant JSON_REMOTE_FILE 	=> 'https://raw.githubusercontent.com/serbanghita/Mobile-Detect/master/Mobile_Detect.json';
use constant JSON_LOCAL_FILE 	=> '/var/tmp/Mobile_Detect.json';
use constan
 detect_mobile_ua);

sub new {
	my($class, %args) = @_;
	my $self 		= bless({}, $class);
	my $json 		= JSON->new();
	my $filestamp	= 0;
	my $filesize	= 0; 
	my %hashfile;
	my $hash;
	
	if (-e HASH_LOC
Net-Twitter-Lite ( M/MM/MMIMS/Net-Twitter-Lite-0.12008.tar.gz, MMIMS, 2016; MetaCPAN )
Net-Twitter-Lite/lib/Net/Twitter/Lite/WrapResult.pm ( view source; MetaCPAN )
_limit_remaining;

=head1 DESCRIPTION

Often, the result of a Twitter API call, inflated from the JSON body of the
HTTP response does not contain all the information you need. Twitter includes
meta da
Net-Lumberjack ( B/BE/BENNING/Net-Lumberjack-1.02.tar.gz, BENNING, 2016; MetaCPAN )
Net-Lumberjack/lib/Net/Lumberjack/Frame.pm ( view source; MetaCPAN )
d;
use Net::Lumberjack::Frame::Ack;
use Net::Lumberjack::Frame::Data;
use Net::Lumberjack::Frame::JSON;

has 'version' => ( is => 'rw', isa => 'Int', default => 1 );
has 'type' => ( is => 'rw', isa =>
YPES = (
  'A' => 'Ack',
  'W' => 'WindowSize',
  'C' => 'Compressed',
  'D' => 'Data',
  'J' => 'JSON',
);

sub new_from_fh {
	my ( $class, $fh ) = ( shift, shift );
	my ( $version, $type );
  # EOF 

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