Group
Extension

Matches 35359

Data-Sah-JS ( P/PE/PERLANCAR/Data-Sah-JS-0.87.tar.gz, PERLANCAR, 2016; MetaCPAN )
Data-Sah-JS/lib/Data/Sah/Compiler/js/TH/hash.pm ( view source; MetaCPAN )
..
    $cd->{_ccl_check_type} = "typeof($dt)=='object' && !($dt instanceof Array)";
}

my $STR = "JSON.stringify";

sub superclause_comparable {
    my ($self, $which, $cd) = @_;
    my $c  = $self->c
Data-Sah-JS ( P/PE/PERLANCAR/Data-Sah-JS-0.87.tar.gz, PERLANCAR, 2016; MetaCPAN )
Data-Sah-JS/lib/Test/Data/Sah/JS.pm ( view source; MetaCPAN )
 = qw(run_spectest_for_js);

sub _encode_json {
    state $json = do {
        require JSON::MaybeXS;
        JSON::MaybeXS->new->allow_nonref;
    };
    $json->encode(@_);
}

sub run_spectest_for_js
h = Data::Sah->new;
            my $js = $sah->get_compiler('js');

            my %names; # key: json(schema)
            my %counters; # key: type name

            my @js_code;

            # contr
tname: $reason";
                    next TEST;
                }
                my $k = _encode_json($test->{schema});
                my $ns = $sah->normalize_schema($test->{schema});
             
Data-Sah-JS ( P/PE/PERLANCAR/Data-Sah-JS-0.87.tar.gz, PERLANCAR, 2016; MetaCPAN )
Data-Sah-JS/lib/Data/Sah/Compiler/js/TH/array.pm ( view source; MetaCPAN )
    my $dt = $cd->{data_term};
    $cd->{_ccl_check_type} = "$dt instanceof Array";
}

my $STR = "JSON.stringify";

sub superclause_comparable {
    my ($self, $which, $cd) = @_;
    my $c  = $self->c
XAS-Supervisor ( K/KE/KESTEB/XAS-Supervisor-0.02.tar.gz, KESTEB, 2016; MetaCPAN )
XAS-Supervisor/lib/XAS/Supervisor/Client.pm ( view source; MetaCPAN )
ION = '0.01';

use XAS::Class
  debug   => 0,
  version => $VERSION,
  base    => 'XAS::Lib::RPC::JSON::Client',
;

# ----------------------------------------------------------------------
# Public Me
CPAN-Testers-TailLog ( K/KE/KENTNL/CPAN-Testers-TailLog-0.001001.tar.gz, KENTNL, 2016; MetaCPAN )
CPAN-Testers-TailLog/lib/CPAN/Testers/TailLog.pm ( view source; MetaCPAN )
 be closer to verbatim.

=item * L<fast-matrix tail-log-to-json|https://github.com/eserte/cpan-testers-matrix/blob/master/bin/tail-log-to-json.pl>

C<CPAN::Testers::TailLog> contains similar logic to 
BioX-Workflow ( J/JI/JILLROWE/BioX-Workflow-1.10.tar.gz, JILLROWE, 2016; MetaCPAN )
BioX-Workflow/lib/BioX/Workflow.pm ( view source; MetaCPAN )
    $self->save_env;
}

=head2 workflow_load

use Config::Any to load configuration files - yaml, json, etc

=cut

sub workflow_load {
    my $self = shift;

    my $cfg = Config::Any->load_files(
   
HPC-Runner-Scheduler ( J/JI/JILLROWE/HPC-Runner-Scheduler-0.09.tar.gz, JILLROWE, 2016; MetaCPAN )
HPC-Runner-Scheduler/lib/HPC/Runner/Scheduler.pm ( view source; MetaCPAN )
use DateTime;
use Data::Dumper;
use List::Util qw(shuffle);
use List::MoreUtils qw(firstidx);
use JSON;

use Moose;
use namespace::autoclean;
extends 'HPC::Runner';
with 'MooseX::SimpleConfig';

# For
atchname};

    my $json = JSON->new->allow_nonref;
    my $json_text   = $json->encode( $batch );

    $DB::single=2;
    $json_text = " --metastr \'$json_text\'";
    return $json_text;
}

sub creat
XAS-Spooler ( K/KE/KESTEB/XAS-Spooler-0.03.tar.gz, KESTEB, 2016; MetaCPAN )
XAS-Spooler/lib/XAS/Spooler/Connector.pm ( view source; MetaCPAN )
omp::POE::Client',
  accessors  => 'events',
  constants  => 'TRUE FALSE ARRAY',
  codec      => 'JSON',
  filesystem => 'File',
  vars => {
    PARAMS => {
      -hostname  => { optional => 1, defaul
s
creating the standard message header, decoding the data and creating a
serialized message using JSON. This message is then sent to message queue
server.

=over 4

=item B<OBJECT>

The handle for the

The queue to send the message too.

=item B<ARG3>

The actual data to process. This is usually a JSON formated string.

=item B<ARG4>

The full qualified name of the file that was processed. This, al
WWW-MobileCarrierJP ( T/TO/TOKUHIROM/WWW-MobileCarrierJP-0.65.tar.gz, TOKUHIROM, 2016; MetaCPAN )
WWW-MobileCarrierJP/script/www-mobilecarrierjp-dump_all.pl ( view source; MetaCPAN )
      require YAML;
        sub { YAML::Dump(@_) }
    } elsif ($format eq 'JSON') {
        require JSON;
        sub { JSON->new->utf8->canonical->encode(@_) }
    } else {
        print "Unknown fo
 www-mobilecarrierjp-dump_all.pl --format=JSON --datdir=/path/to/output --softbank

    --format=JSON              出力フォーマットを指定する(JSON または YAML を選択可能)
    --da
XAS-Spooler ( K/KE/KESTEB/XAS-Spooler-0.03.tar.gz, KESTEB, 2016; MetaCPAN )
XAS-Spooler/lib/XAS/Spooler.pm ( view source; MetaCPAN )
a message, it creates a spool file. The spool file
is a serialized Perl data structure in L<JSON|http://json.org/> format, with 
special headers. The spooler scans the spool directory and sends the pa
WWW-Baidu-ZhanZhang ( F/FA/FAYLAND/WWW-Baidu-ZhanZhang-0.01.tar.gz, FAYLAND, 2016; MetaCPAN )
WWW-Baidu-ZhanZhang/lib/WWW/Baidu/ZhanZhang.pm ( view source; MetaCPAN )
' => 'text/plain' } => join("\n", @urls));
    if (my $res = $tx->success) {
        return $res->json;
    } else {
        my $err = $tx->error;
        croak "$err->{code} response: $err->{message}
XAS-Service ( K/KE/KESTEB/XAS-Service-0.01.tar.gz, KESTEB, 2016; MetaCPAN )
XAS-Service/lib/XAS/Service/CheckParameters.pm ( view source; MetaCPAN )
on   => $VERSION,
  base      => 'XAS::Base',
  utils     => ':validation dotid',
  codec     => 'JSON',
  constants => 'HASHREF',
  mixins    => 'check_parameters',
;

#use Data::Dumper;

# ---------
ameters. It expects a "profile" method to be defined. Exceptions are thrown,
and the message is a JSON data structure of the errors.

=head2 check_parameters($params, $type)

A basic validation routin
XAS-Service ( K/KE/KESTEB/XAS-Service-0.01.tar.gz, KESTEB, 2016; MetaCPAN )
XAS-Service/lib/XAS/Service/Search.pm ( view source; MetaCPAN )
ervice::CheckParameters',
  accessors => 'profile',
  utils     => ':validation',
  codec     => 'JSON',
  vars => {
    PARAMS => {
      -columns => { type => ARRAYREF },
    }
  }
;

use Data::Dump
a source is implemented with these parameters.

=over 4

=item B<sort>

This will be a serialized JSON data structure. This needs to be converted
into a Perl data structure. This data structure will b
 source is implemented with these parameters.

=over 4

=item B<group>

This will be a serialized JSON data structure. This needs to be converted
into a Perl data structure. This data structure will b
XAS-Service ( K/KE/KESTEB/XAS-Service-0.01.tar.gz, KESTEB, 2016; MetaCPAN )
XAS-Service/lib/XAS/Apps/Service/Testd.pm ( view source; MetaCPAN )
package XAS::Apps::Service::Testd;

use Template;
use JSON::XS;
use Web::Machine;
use Plack::Builder;
use Plack::App::File;
use Plack::App::URLMap;
use XAS::Service::Server;

use XAS::Class
  version 
rvices');
    my $description = $self->cfg->val('app', 'description', 'Test api using RESTFUL HAL-JSON');

    # Template config

    my $config = {
        INCLUDE_PATH => File($base, 'root')->path, 
ext
    };

    # create various objects

    my $template = Template->new($config);
    my $json     = JSON::XS->new->utf8();

    # allow variables with preceeding _

    $Template::Stash::PRIVATE =
XAS-Service ( K/KE/KESTEB/XAS-Service-0.01.tar.gz, KESTEB, 2016; MetaCPAN )
XAS-Service/lib/XAS/Service/Resource.pm ( view source; MetaCPAN )
gs->{'template'}
      ? $args->{'template'}
      : undef;

    $self->{'json'} = exists $args->{'json'}
      ? $args->{'json'}
      : undef;

    $self->{'app_name'} = exists $args->{'app_name'}
 
  return 1;

}

sub content_types_accepted {

    return [
        { 'application/json'                  => 'from_json' },
        { 'application/x-www-form-urlencoded' => 'from_html' },
    ];

}

su
{

    return [
        { 'text/html'            => 'to_html' },
        { 'application/hal+json' => 'to_json' },
    ];

}

sub charset_provided { return ['UTF-8']; }

sub finish_request {
    my $se
XAS-Service ( K/KE/KESTEB/XAS-Service-0.01.tar.gz, KESTEB, 2016; MetaCPAN )
XAS-Service/lib/XAS/Service.pm ( view source; MetaCPAN )
faces are accessed over HTTP. That 
interface will be REST based. They will return either HTML or JSON depending 
on HTTP headers. The HTML interface will be a simple layer to the underlaying 
api. Th
or REST based 
applications.

=head2 VALIDATION

You also need to validate your input. Any posted JSON data is converted into a
L<Hash::MultiValue|https://metacpan.org/pod/Hash::MultiValue> object. Th
POE-XUL ( G/GW/GWYN/POE-XUL-0.0601.tar.gz, GWYN, 2016; MetaCPAN )
POE-XUL/lib/POE/XUL/Request.pm ( view source; MetaCPAN )
);
    }
    elsif( $ct eq 'application/json' or $ct eq 'text/json' ) {
        # TODO : request might be an array of requests!
        return $self->decode_json ( $C );
    }
    xwarn "Unable to par
#################
sub decode_json
{
    my( $self, $C ) = @_;
    my $args = eval { 
            if( $JSON::XS::VERSION > 2 ) {
                return JSON::XS::decode_json( $C ) 
            }
      
      else {
                return JSON::XS::from_json( $C ) 
            }
        };
    if( $@ ) {
        xwarn "JSON error: $@";
        return RC_BAD_REQUEST;
    }
    unless( 'HASH' eq ref $a
POE-XUL ( G/GW/GWYN/POE-XUL-0.0601.tar.gz, GWYN, 2016; MetaCPAN )
POE-XUL/lib/POE/XUL/ChangeManager.pm ( view source; MetaCPAN )
yId.
#

use strict;
use warnings;

use Carp qw( carp confess croak cluck );
use HTTP::Status;
use JSON::XS;
use POE::XUL::Logging;
use POE::XUL::State;
use POE::XUL::Encode;
use Scalar::Util qw( weake
        prepend     => [],
            other_windows => []
        }, $package;

    $self->build_json;
    return $self;
}

##############################################################
sub current_
#################################
sub build_json
{
    my( $self ) = @_;
    my $coder = JSON::XS->new->space_after( 1 );
    $coder->ascii;
    $self->{json_coder} = $coder;
}

######################
Test-BDD-Infrastructure ( B/BE/BENNING/Test-BDD-Infrastructure-1.005.tar.gz, BENNING, 2016; MetaCPAN )
Test-BDD-Infrastructure/lib/Test/BDD/Infrastructure/Config/Facter.pm ( view source; MetaCPAN )
:Infrastructure::Config::Hash';

use IPC::Run;
use JSON;

has 'command' => ( is => 'ro', isa => 'ArrayRef[Str]',
	default => sub { [ 'facter', '--json' ] },
);

has 'config' => ( is => 'rw', lazy => 1
n($self->command, \$in, \$out, \$err )
			or die("error running facter: $err");
		my $data = from_json( $out );
		return( $data );
	},
);

1;

__END__

=pod

=encoding UTF-8

=head1 NAME

Test::BDD::I
POE-XUL ( G/GW/GWYN/POE-XUL-0.0601.tar.gz, GWYN, 2016; MetaCPAN )
POE-XUL/lib/POE/XUL.pm ( view source; MetaCPAN )
e
manager.  These nodes are converted into JSON instructions by the
ChangeManager, which are sent as the HTTP response. The JS client library
decodes the JSON instructions, populating the XUL DOM tree
nager converts any changes to
the POE::XUL::Nodes to JSON instructions, which are sent as the HTTP
response. The JS client library decodes the JSON instructions, modifying the
XUL DOM tree as necessar
                            \/                /\
    HTTP/AJAX                 Request            JSON
                                \/                /\
    POE::Component::XUL       decode        

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