Group
Extension

Matches 35359

switchman ( K/KO/KOMAROV/switchman-1.16.tar.gz, KOMAROV, 2016; MetaCPAN )
switchman/lib/App/Switchman.pm ( view source; MetaCPAN )
ct;
use warnings;

use File::Basename qw(basename);
use Getopt::Long qw(GetOptionsFromArray);
use JSON;
use Linux::MemInfo;
use List::MoreUtils qw(part uniq);
use List::Util qw(max);
use Log::Dispatch
 prefix znode
Sets prefix_data_watch

=cut

sub load_prefix_data
{
    my $self = shift;

    my $json_data = $self->zkh->get($self->prefix, watch => $self->prefix_data_watch);
    if ($self->zkh->get
".$self->zkh->str_error);
    }

    my (%data, $prefix_data);
    if ($json_data) {
        $prefix_data = eval {from_json($json_data)};
        if (!$prefix_data || $@) {
            $self->_error("
Complete-Fish-Gen-FromPerinciCmdLine ( P/PE/PERLANCAR/Complete-Fish-Gen-FromPerinciCmdLine-0.004.tar.gz, PERLANCAR, 2016; MetaCPAN )
Complete-Fish-Gen-FromPerinciCmdLine/lib/Complete/Fish/Gen/FromPerinciCmdLine.pm ( view source; MetaCPAN )
  meta_is_normalized => 1,
        common_opts => $cli->{common_opts},
        per_arg_json => $cli->{per_arg_json},
        per_arg_yaml => $cli->{per_arg_yaml},
    );
    return [500, "Can't genera
> $gengls_res,
        meta => $meta,
        meta_is_normalized => 1,
        per_arg_json => $cli->{per_arg_json},
        per_arg_yaml => $cli->{per_arg_yaml},
    );
    return [500, "Can't genera
WebService-Bonusly ( H/HA/HANENKAMP/WebService-Bonusly-1.001.tar.gz, HANENKAMP, 2016; MetaCPAN )
WebService-Bonusly/lib/WebService/Bonusly/Base.pm ( view source; MetaCPAN )
 '_build_ua',
);

# Undocumented attribute, mostly useful for testing. Use at your own risk!
has _json_flags => (
    is          => 'ro',
    isa         => 'HashRef',
    required    => 1,
    defau
AnyEvent-ClickHouse ( M/MM/MMV/AnyEvent-ClickHouse-0.031.tar.gz, MMV, 2016; MetaCPAN )
AnyEvent-ClickHouse/lib/AnyEvent/ClickHouse.pm ( view source; MetaCPAN )
                   (default)

=item * TabSeparatedWithNames

=item * CSV

=item * Pretty

=item * JSON

=item * XML

=item * ...

=back

L<https://clickhouse.yandex/reference_en.html#Formats>

    cli
WebService-Bonusly ( H/HA/HANENKAMP/WebService-Bonusly-1.001.tar.gz, HANENKAMP, 2016; MetaCPAN )
WebService-Bonusly/lib/WebService/Bonusly/Service.pm ( view source; MetaCPAN )
ce::Bonusly::Service;
$WebService::Bonusly::Service::VERSION = '1.001';
use v5.14;
use Moose;
use JSON;
use Try::Tiny;
use URI::Escape;

# ABSTRACT: A utility class for WebService::Bonusly services


Bonusly',
    required    => 1,
    weak_ref    => 1,
    handles     => [ qw( token base_url ua _json_flags print_debug ) ],
);

sub _perform_action {
    my ($self, $method, $path_info, $params, $to
       my $content = to_json(\%clean, $self->_json_flags);

        $self->print_debug("SEND>> $method $path");
        $self->print_debug("SEND>> Content-Type: application/json");
        $self->prin
Plift ( C/CA/CAFEGRATZ/Plift-0.15.tar.gz, CAFEGRATZ, 2016; MetaCPAN )
Plift/lib/Plift/Context.pm ( view source; MetaCPAN )
package Plift::Context;

use Moo;
use Carp;
use XML::LibXML::jQuery;
use JSON 'to_json';
use Encode 'encode';
use namespace::clean;
use Ref::Util qw/ is_hashref is_blessed_ref /;


has 'helper', is =>
ion);

            $target_element->remove unless defined $value;

            # to_json
            $value = to_json($value, { convert_blessed => 1 }) if ref $value eq 'HASH';

            # encode
 
WebService-HealthGraph ( O/OA/OALDERS/WebService-HealthGraph-0.000004.tar.gz, OALDERS, 2016; MetaCPAN )
WebService-HealthGraph/lib/WebService/HealthGraph.pm ( view source; MetaCPAN )
d' if $feed;

        $headers->{Accept}
            = sprintf( 'application/vnd.com.runkeeper.%s+json', $accept );
    }

    # Fix up URLs with a semicolon delimiter.
    if ( $url =~ m{;} ) {
     
      {
            headers =>
                { Accept => 'application/vnd.com.runkeeper.Records+json' }
        );

Returns a L<WebService::HealthGraph::Response> object.

=head1 CAVEATS

Most respo
Mojolicious-Plugin-QuickPg ( A/AZ/AZJADFTRE/Mojolicious-Plugin-QuickPg-1.6.tar.gz, AZJADFTRE, 2016; MetaCPAN )
Mojolicious-Plugin-QuickPg/lib/Mojolicious/Plugin/QuickPg.pm ( view source; MetaCPAN )
ww.flickr.com/search/?text=Moscow' } );
  # or you can do like this
  
  my $params = $c->req->json;
  
  # Do not forget to validate $params before it:
  
  my $id = $c->insert('models', $para
RPC-ExtDirect ( T/TO/TOKAREV/RPC-ExtDirect-3.24.tar.gz, TOKAREV, 2016; MetaCPAN )
RPC-ExtDirect/lib/RPC/ExtDirect/Router.pm ( view source; MetaCPAN )
f $has_upload;

    # Form upload responses are JSON wrapped in HTML, not plain JSON
    my $content_type = $has_upload ? 'text/html' : 'application/json';

    # We need content length in octets
    
RPC-ExtDirect-Server ( T/TO/TOKAREV/RPC-ExtDirect-Server-1.24.tar.gz, TOKAREV, 2016; MetaCPAN )
RPC-ExtDirect-Server/lib/RPC/ExtDirect/Server.pm ( view source; MetaCPAN )

    jpg  => 'image/jpeg',
    jpeg => 'image/jpeg',
    js   => 'text/javascript',
    json => 'application/json',
    midi => 'audio/x-midi',
    mp3  => 'audio/mpeg',
    mpeg => 'video/mpeg',
    
RPC-ExtDirect ( T/TO/TOKAREV/RPC-ExtDirect-3.24.tar.gz, TOKAREV, 2016; MetaCPAN )
RPC-ExtDirect/lib/RPC/ExtDirect/API/Method.pm ( view source; MetaCPAN )
d;

use strict;
use warnings;
no  warnings 'uninitialized';           ## no critic

use Carp;
use JSON;

use RPC::ExtDirect::Config;
use RPC::ExtDirect::Util ();
use RPC::ExtDirect::Util::Accessor;

#


    my $def;
    
    # Form handlers are defined like this
    # (\1 means JSON::true and doesn't force us to `use JSON`)
    if ( $self->formHandler ) {
        $def = { name => $name, formHandler
xtDirect::Client will call this method to prepare
# the arguments that are about to be encoded in JSON and passed
# over to the server side.
#
# The difference is that the server side wants an unfolde
RPC-ExtDirect ( T/TO/TOKAREV/RPC-ExtDirect-3.24.tar.gz, TOKAREV, 2016; MetaCPAN )
RPC-ExtDirect/lib/RPC/ExtDirect/API/Method.pod ( view source; MetaCPAN )
ecode_params>

This optional parameter may contain the list of fields that should be
decoded from JSON for a formHandler Method. Does nothing for Methods
with other calling conventions.

=item C<metad
RPC-ExtDirect ( T/TO/TOKAREV/RPC-ExtDirect-3.24.tar.gz, TOKAREV, 2016; MetaCPAN )
RPC-ExtDirect/lib/RPC/ExtDirect/Config.pm ( view source; MetaCPAN )
    accessor => 'json_options',
}, {
    setter   => 'json_options_serialize',
    fallback => 'json_options',
}, {
    package  => 'RPC::ExtDirect::Deserialize',
    var      => 'JSON_OPTIONS',
    t
ype     => 'hash',
    setter   => 'json_options_deserialize',
    fallback => 'json_options',
}, {
    accessor => 'router_class',
    default  => 'RPC::ExtDirect::Router',
}, {
    accessor => 'time
RPC-ExtDirect ( T/TO/TOKAREV/RPC-ExtDirect-3.24.tar.gz, TOKAREV, 2016; MetaCPAN )
RPC-ExtDirect/lib/RPC/ExtDirect/Util.pm ( view source; MetaCPAN )
:Util;

use strict;
use warnings;
no  warnings 'uninitialized';       ## no critic

use Carp;
use JSON;

use base 'Exporter';

our @EXPORT_OK = qw/
    clean_error_message
    get_caller_info
    pars
ed ) {
        # Whoever sends *multiple* metadata fields is going to regret it.
        my $meta_json = 'ARRAY' eq ref $meta_encoded ? pop @$meta_encoded
                      :                      
oded
                      ;

        local $@;
        $keywords->{metadata} = eval { JSON::from_json($meta_json) };

        if ( $@ ) {
            my $error = clean_error_message($@);
            
RPC-ExtDirect ( T/TO/TOKAREV/RPC-ExtDirect-3.24.tar.gz, TOKAREV, 2016; MetaCPAN )
RPC-ExtDirect/lib/RPC/ExtDirect/Serializer.pm ( view source; MetaCPAN )
lizer;

use strict;
use warnings;
no  warnings 'uninitialized';       ## no critic

use Carp;
use JSON ();

use RPC::ExtDirect::Config;

use RPC::ExtDirect::Util::Accessor;
use RPC::ExtDirect::Util qw
;
    
    return $self;
}

### PUBLIC INSTANCE METHOD ###
#
# Serialize the data passed to it in JSON
#

sub serialize {
    my ($self, %arg) = @_;
    
    my $data = delete $arg{data} || [];

    #
 @serialized) . ']'
             ;

    return $text;
}

### PUBLIC INSTANCE METHOD ###
#
# Turns JSONified POST request(s) into array of instantiated
# RPC::ExtDirect::Request (Exception) objects. Re
FAIR-Data ( M/MA/MARKW/FAIR-Data-1.001.tar.gz, MARKW, 2016; MetaCPAN )
FAIR-Data/lib/FAIR/Accessor.pm ( view source; MetaCPAN )
led?
 use lib "$FindBin::Bin";      # use that dir for libs, too
 use strict;
 use warnings;
 use JSON;
 use FAIR::Accessor::Distribution;
 use FAIR::Accessor::Container;
 use FAIR::Accessor::MetaReco
RPC-ExtDirect ( T/TO/TOKAREV/RPC-ExtDirect-3.24.tar.gz, TOKAREV, 2016; MetaCPAN )
RPC-ExtDirect/lib/RPC/ExtDirect/Serialize.pm ( view source; MetaCPAN )
instead.
#

our $EXCEPTION_CLASS;

### PUBLIC CLASS METHOD ###
#
# Serialize the passed data into JSON form
#
# DEPRECATED. Use RPC::ExtDirect::Serializer->serializer instance method
# instead.
#

sub
VM-JiffyBox ( B/BO/BORISD/VM-JiffyBox-0.032.tar.gz, BORISD, 2016; MetaCPAN )
VM-JiffyBox/lib/VM/JiffyBox/Box.pm ( view source; MetaCPAN )
BSTRACT: Representation of a Virtual Machine in JiffyBox

use strict;
use warnings;

use Moo;
use JSON;

has id         => (is => 'ro', required => 1);
has hypervisor => (is => 'ro', required => 1);
h
        $self->last ( $response->status_line );
        return;
    }

    my $backup_info = from_json($response->decoded_content);

    $self->last         ($backup_info);
    $self->backup_cache ($b
 {

        $self->last ( $response->status_line );
        return;
    }

    my $details = from_json($response->decoded_content);

    $self->last          ($details);
    $self->details_cache ($det
VM-JiffyBox ( B/BO/BORISD/VM-JiffyBox-0.032.tar.gz, BORISD, 2016; MetaCPAN )
VM-JiffyBox/lib/VM/JiffyBox.pm ( view source; MetaCPAN )
ackaging
# ABSTRACT: OO-API for JiffyBox Virtual Machine

use strict;
use warnings;

use Moo;
use JSON;
use LWP::UserAgent;
use Scalar::Util qw( reftype );

use VM::JiffyBox::Box;

has domain_name => 
ss) {
        $self->last ($response->status_line);
        return;
    }

    my $details = from_json($response->decoded_content);

    $self->last         ( $details );
    $self->details_cache( $de
>base_url . '/jiffyBoxes';

    # transform args into JSON and pass them to API server
    my $response = $self->ua->post($url, Content => to_json($args));

    # POSSIBLE EXIT
    unless ($response->
FAIR-Data ( M/MA/MARKW/FAIR-Data-1.001.tar.gz, MARKW, 2016; MetaCPAN )
FAIR-Data/lib/FAIR/AccessorBase.pm ( view source; MetaCPAN )
:VERSION = '1.001';




# ABSTRACT: The core Accessor functions


use Moose;
use URI::Escape;
use JSON;
use FAIR::AccessorConfig;
use RDF::Trine::Parser 0.135;
use RDF::Trine::Model 0.135;
use RDF::Tr

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