Group
Extension

Matches 35358

HeliosX-Job-JSON ( L/LH/LHELION/HeliosX-Job-JSON-1.00.tar.gz, LHELION, 2014; MetaCPAN )
HeliosX-Job-JSON/lib/HeliosX/Job/JSON.pm ( view source; MetaCPAN )
ob::JSON;

use 5.008;
use strict;
use warnings;
use base 'Helios::Job';

use JSON::Tiny qw(decode_json);
$JSON::Tiny::TRUE  = 1;
$JSON::Tiny::FALSE = 0;

use Helios::Config;
use HeliosX::Job::JSON::Er
Job::JSON - Helios::Job subclass using JSON to specify job arguments

=head1 SYNOPSIS

 # In your Helios::Service class:
 package MyService;
 use parent 'Helios::Service';
 use HeliosX::Job::JSON;
 
 
::JSON' }
 
 sub run {
 	... run code here ... 
 }
 
 1;
 
 # In your job submission code, use 
 # HeliosX::Job::JSON just like Helios::Job.
 my $config = Helios::Config->parseConfig();
 my $arg_json 
JSON-T ( T/TO/TOBYINK/JSON-T-0.104.tar.gz, TOBYINK, 2014; MetaCPAN )
JSON-T/lib/JSON/T/SpiderMonkey.pm ( view source; MetaCPAN )
8;

use JavaScript::SpiderMonkey ();

package JSON::T::SpiderMonkey;

our $AUTHORITY = 'cpan:TOBYINK';
our $VERSION   = '0.104';
our @ISA       = qw( JSON::T );

sub init
{
	my $self = shift;
	my (@ar
y_by_path($k, "$v");
	}
}

1;

__END__

=pod

=encoding utf-8

=head1 NAME

JSON::T::SpiderMonkey - transform JSON using JsonT and SpiderMonkey (libjs)

=head1 DESCRIPTION

This module uses L<JavaScri
eters>

=back

=head1 BUGS

Please report any bugs to L<http://rt.cpan.org/>.

=head1 SEE ALSO

L<JSON::T>.

=head1 AUTHOR

Toby Inkster E<lt>tobyink@cpan.orgE<gt>.

=head1 COPYRIGHT AND LICENCE

Copy
JSON-RPC ( D/DM/DMAKI/JSON-RPC-1.06.tar.gz, DMAKI, 2014; MetaCPAN )
JSON-RPC/lib/JSON/RPC/Legacy/Server/Apache2.pm ( view source; MetaCPAN )
########################################
package JSON::RPC::Legacy::Server::Apache2;

use strict;

use lib qw(/var/www/cgi-bin/json/);
use base qw(JSON::RPC::Legacy::Server);

use Apache2::Const -comp
:Table ();
use Apache2::RequestRec ();
use Apache2::RequestIO ();
use Apache2::RequestUtil ();


$JSON::RPC::Legacy::Server::Apache::VERSION = '1.06';


sub handler {
    my($r) = @_;

    my $s = __P
Const::OK;
}


sub new {
    my $class = shift;
    return $class->SUPER::new();
}


sub retrieve_json_from_post {
    my $self = shift;
    my $r    = $self->request;
    my $len  = $r->headers_in()-
JSON-RPC ( D/DM/DMAKI/JSON-RPC-1.06.tar.gz, DMAKI, 2014; MetaCPAN )
JSON-RPC/lib/JSON/RPC/Legacy/Procedure.pm ( view source; MetaCPAN )
package JSON::RPC::Legacy::Procedure;

#
# http://json-rpc.org/wd/JSON-RPC-1-1-WD-20060807.html
#

$JSON::RPC::Legacy::Procedure::VERSION = '1.06';

use strict;
use attributes;
use Carp ();

my $Proce
|Nil|None/) {
        Carp::croak("Invalid type '$attr'. Specify 'Parivate' or 'Public' or One of JSONRPC Return Types.");
    }

    if ($ret_type ne 'Private' and defined $args) {
        $Procedure

    };
}



1;
__END__

=pod


=head1 NAME

JSON::RPC::Legacy::Procedure - JSON-RPC Service attributes

=head1 SYNOPSIS

 package MyApp;
 
 use base ('JSON::RPC::Legacy::Procedure');
 
 sub sum : Pub
JSON-RPC ( D/DM/DMAKI/JSON-RPC-1.06.tar.gz, DMAKI, 2014; MetaCPAN )
JSON-RPC/lib/JSON/RPC/Legacy/Server/Daemon.pm ( view source; MetaCPAN )
##################
package JSON::RPC::Legacy::Server::Daemon;

use strict;
use JSON::RPC::Legacy::Server; # for old Perl 5.005
use base qw(JSON::RPC::Legacy::Server);

$JSON::RPC::Legacy::Server::Daem
    last;
        }
        $c->close;
    }

}


sub retrieve_json_from_post {
    return $_[0]->request->content;
}


sub retrieve_json_from_get {
}


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



=head1 NAME

JSON::RPC::Legacy::Server::Daemon - JSON-RPC sever for daemon

=head1 SYNOPSIS

 # Daemon version
 #--------------------------
 # In your daemon server script
 use JSON::RPC::Legacy::S
JSON-RPC ( D/DM/DMAKI/JSON-RPC-1.06.tar.gz, DMAKI, 2014; MetaCPAN )
JSON-RPC/lib/JSON/RPC/Legacy/Client.pm ( view source; MetaCPAN )
##########
# JSONRPC version 1.1
# http://json-rpc.org/wd/JSON-RPC-1-1-WD-20060807.html
##############################################################################

use strict;
use JSON ();
use Car
#####################

package JSON::RPC::Legacy::Client;

$JSON::RPC::Legacy::Client::VERSION = '1.06';

use LWP::UserAgent;


BEGIN {
    for my $method (qw/uri ua json content_type version id allow
od};
            }
        |;
    }
}



sub AUTOLOAD {
    my $self   = shift;
    my $method = $JSON::RPC::Legacy::Client::AUTOLOAD;

    $method =~ s/.*:://;

    return if ($method eq 'DESTROY');
JSON-RPC ( D/DM/DMAKI/JSON-RPC-1.06.tar.gz, DMAKI, 2014; MetaCPAN )
JSON-RPC/lib/JSON/RPC/Legacy/Server.pm ( view source; MetaCPAN )
##########
# JSONRPC version 1.1
# http://json-rpc.org/wd/JSON-RPC-1-1-WD-20060807.html
##############################################################################

use strict;
use JSON ();
use Car
ackage JSON::RPC::Legacy::Server;

my $JSONRPC_Procedure_Able;

BEGIN {
    if ($] >= 5.006) {
        require  JSON::RPC::Legacy::Procedure;
        $JSONRPC_Procedure_Able = 1;
    }
}


$JSON::RPC:
:Legacy::Server::VERSION = '1.06';


BEGIN {
    for my $method (qw/request path_info json version error_message max_length charset content_type
                        error_response_header return_di
JSON-RPC ( D/DM/DMAKI/JSON-RPC-1.06.tar.gz, DMAKI, 2014; MetaCPAN )
JSON-RPC/lib/JSON/RPC/Parser.pm ( view source; MetaCPAN )
package JSON::RPC::Parser;
use strict;
use JSON::RPC::Procedure;
use Carp ();
use Plack::Request;
use Class::Accessor::Lite
    new => 1,
    rw => [ qw(
        coder
    ) ]
;

sub construct_procedu
re {
    my $self = shift;
    JSON::RPC::Procedure->new( @_ );
}

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

    my $method = $req->method;
    my $proc;
    if ($method eq 'POST') {
      
my $request = eval { $self->coder->decode( $req->content ) };
    if ($@) {
        Carp::croak( "JSON parse error: $@" );
    }

    my $ref = ref $request;
    if ($ref ne 'ARRAY') {
        # is no
JSON-T ( T/TO/TOBYINK/JSON-T-0.104.tar.gz, TOBYINK, 2014; MetaCPAN )
JSON-T/lib/JSON/T.pm ( view source; MetaCPAN )
.010;
use strict;
use warnings;
use utf8;

package JSON::T;

use overload '""' => \&_to_string;

BEGIN
{
	$JSON::T::AUTHORITY = 'cpan:TOBYINK';
	$JSON::T::VERSION   = '0.104';
}

our ($JSLIB, @Impleme
	{
		local $/ = undef;
		$JSLIB = <DATA>;
	}
}

BEGIN
{
	push @Implementations, qw/
		JSON::T::SpiderMonkey
		JSON::T::JE
	/;
}

{
	no warnings 'redefine';
	sub DOES
	{
		my ($class, $role) = @_;
		re
return 'JsonT:#'.$self->{'name'};
}

sub _json_backend
{
	my $self = shift;
	
	$self->{'json_backend'} ||= eval {
		require Cpanel::JSON::MaybeXS;
		'Cpanel::JSON::MaybeXS';
	};
	$self->{'json_backend
JSON-RPC ( D/DM/DMAKI/JSON-RPC-1.06.tar.gz, DMAKI, 2014; MetaCPAN )
JSON-RPC/lib/JSON/RPC.pm ( view source; MetaCPAN )
package JSON::RPC;
use strict;
our $VERSION = '1.06';

1;

__END__

=head1 NAME

JSON::RPC - JSON RPC 2.0 Server Implementation

=head1 SYNOPSIS

    # app.psgi
    use strict;
    use JSON::RPC::Disp
atch;

    my $dispatch = JSON::RPC::Dispatch->new(
        prefix => "MyApp::JSONRPC::Handler",
        router => Router::Simple->new( ... )
    );

    sub {
        my $env = shift;
        $dispat
ch->handle_psgi($env);
    };

=head1 DESCRIPTION

JSON::RPC is a set of modules that implement JSON RPC 2.0 protocol.

    If you are using old JSON::RPC code (up to 0.96), DO NOT EXPECT
    YOUR COD
JSON-RPC ( D/DM/DMAKI/JSON-RPC-1.06.tar.gz, DMAKI, 2014; MetaCPAN )
JSON-RPC/lib/JSON/RPC/Legacy.pm ( view source; MetaCPAN )
package JSON::RPC::Legacy;

use strict;

1;
__END__

=pod

=head1 NAME

JSON::RPC - Perl implementation of JSON-RPC 1.1 protocol

=head1 DESCRIPTION

 JSON-RPC is a stateless and light-weight remote p
r HTTP. It uses JSON
 as the data format for of all facets of a remote procedure call,
 including all application data carried in parameters.

quoted from L<http://json-rpc.org/wd/JSON-RPC-1-1-WD-2006
le was in JSON package on CPAN before.
Now its interfaces was completely changed.

The old modules - L<JSONRPC::Transport::HTTP> and L<Apache::JSONRPC> are deprecated.
Please try to use JSON::RPC::Ser
JSON-RPC ( D/DM/DMAKI/JSON-RPC-1.06.tar.gz, DMAKI, 2014; MetaCPAN )
JSON-RPC/lib/JSON/RPC/Dispatch.pm ( view source; MetaCPAN )
package JSON::RPC::Dispatch;
use strict;
use JSON::RPC::Constants qw(:all);
use JSON::RPC::Parser;
use JSON::RPC::Procedure;
use Router::Simple;
use Scalar::Util;
use Try::Tiny;

use Class::Accessor::
    if (! $self->{coder}) {
        require JSON;
        $self->{coder} = JSON->new->utf8;
    }
    if (! $self->{parser}) {
        $self->{parser} = JSON::RPC::Parser->new( coder => $self->coder )
et_handler {
    my ($self, $klass) = @_;

    if ( Scalar::Util::blessed( $klass )){
        if (JSONRPC_DEBUG > 1) {
            warn "Handler is already object : $klass";
        }
        return $
JSON-RPC ( D/DM/DMAKI/JSON-RPC-1.06.tar.gz, DMAKI, 2014; MetaCPAN )
JSON-RPC/lib/JSON/RPC/Constants.pm ( view source; MetaCPAN )
package JSON::RPC::Constants;
use strict;
use parent qw(Exporter);

our @EXPORT_OK = qw(
    JSONRPC_DEBUG
    RPC_PARSE_ERROR
    RPC_INVALID_REQUEST
    RPC_METHOD_NOT_FOUND
    RPC_INVALID_PARAMS
 
RT_TAGS = (all => \@EXPORT_OK);

my %constants;
BEGIN {
    %constants = (
        JSONRPC_DEBUG     => $ENV{PERL_JSONRPC_DEBUG} ? 1 : 0,
        RPC_PARSE_ERROR      => -32700,
        RPC_INVALID_RE
AME

JSON::RPC::Constants - Constants

=head1 SYNOPSIS

    use JSON::RPC::Constants qw(:all);
    # or, import one by one

=head1 DEBUG

=over 4 

=item B<JSONRPC_DEBUG>

Set to true if PERL_JSONRPC_
JSON-RPC ( D/DM/DMAKI/JSON-RPC-1.06.tar.gz, DMAKI, 2014; MetaCPAN )
JSON-RPC/lib/JSON/RPC/Test.pm ( view source; MetaCPAN )
package JSON::RPC::Test;
use strict;
use parent qw(Exporter);
our @EXPORT = qw(test_rpc);

sub test_rpc {
    if (ref $_[0] && @_ == 2) {
        @_ = (dispatch => $_[0], client => $_[1]);
    }

    
;
    goto \&Plack::Test::test_psgi;
}

1;

=head1 NAME

JSON::RPC::Test - Simple Wrapper To Test Your JSON::RPC

=head1 SYNOPSIS

    use JSON::RPC::Test;

    test_rpc $dispatch, sub {
        ...
 
JSON-RPC ( D/DM/DMAKI/JSON-RPC-1.06.tar.gz, DMAKI, 2014; MetaCPAN )
JSON-RPC/lib/JSON/RPC/Procedure.pm ( view source; MetaCPAN )
package JSON::RPC::Procedure;
use strict;
use Carp ();
use Class::Accessor::Lite
    new => 1,
    rw => [ qw(
        id
        method
        params
        has_id
        jsonrpc
    ) ]
;

1;

__
END__

=head1 NAME

JSON::RPC::Procedure - A JSON::RPC Procedure

=head1 SYNOPSIS

    use JSON::RPC::Procedure;

    my $procedure = JSON::RPC::Procedure->new(
        id => ...,
        method => ..
s => ...
        jsonrpc => ...
        has_id => ... (a flag that signals that a procedure appears to be a notification when not set)
    );

=head1 DESCRIPTION

A container for JSON RPC procedure in
JSON-T ( T/TO/TOBYINK/JSON-T-0.104.tar.gz, TOBYINK, 2014; MetaCPAN )
JSON-T/lib/JSON/T/JE.pm ( view source; MetaCPAN )
rict;
use warnings;
use utf8;

use JE ();

package JSON::T::JE;

our $AUTHORITY = 'cpan:TOBYINK';
our $VERSION   = '0.104';
our @ISA       = qw( JSON::T );

sub init
{
	my $self = shift;
	my (@args) =
($self->{'engine'}, $v));
	}
}

1;

__END__

=pod

=encoding utf-8

=head1 NAME

JSON::T::JE - transform JSON using JsonT and JE

=head1 DESCRIPTION

This module uses L<JE> to provide JavaScript suppo
eters>

=back

=head1 BUGS

Please report any bugs to L<http://rt.cpan.org/>.

=head1 SEE ALSO

L<JSON::T>.

=head1 AUTHOR

Toby Inkster E<lt>tobyink@cpan.orgE<gt>.

=head1 COPYRIGHT AND LICENCE

Copy
JSON-RPC ( D/DM/DMAKI/JSON-RPC-1.06.tar.gz, DMAKI, 2014; MetaCPAN )
JSON-RPC/lib/JSON/RPC/Legacy/Server/CGI.pm ( view source; MetaCPAN )
###############
package JSON::RPC::Legacy::Server::CGI;

use strict;
use CGI;
use JSON::RPC::Legacy::Server; # for old Perl 5.005

use base qw(JSON::RPC::Legacy::Server);

$JSON::RPC::Legacy::Server::
o($cgi->path_info);

    $self;
}


sub retrieve_json_from_post {
    my $json = $_[0]->cgi->param('POSTDATA');
    return $json;
}


sub retrieve_json_from_get {
    my $self   = shift;
    my $cgi  
 $cgi->path_info;

    $method =~ s{^.*/}{};
    $self->{path_info} =~ s{/?[^/]+$}{};

    $self->json->encode({
        version => '1.1',
        method  => $method,
        params  => $params,
    }
CPAN-Testers-WWW-Reports-Parser ( B/BA/BARBIE/CPAN-Testers-WWW-Reports-Parser-0.06.tar.gz, BARBIE, 2014; MetaCPAN )
CPAN-Testers-WWW-Reports-Parser/lib/CPAN/Testers/WWW/Reports/Parser/JSON.pm ( view source; MetaCPAN )
:Parser::JSON;

use strict;
use warnings;

use vars qw($VERSION);
$VERSION = '0.06';

#----------------------------------------------------------------------------
# Library Modules

use JSON::XS;

#-
shift;
    $self->{data} = $self->_load_file($self->{file})  if($self->{file});
    return decode_json($self->{data});
}

sub _load_file {
    my ($self,$file) = @_;
    my $fh;

    if (ref $file eq 
::WWW::Reports::Parser::JSON - CPAN Testers JSON parser

=head1 SYNOPSIS

  use CPAN::Testers::WWW::Reports::Parser::JSON;

  my $obj = CPAN::Testers::WWW::Reports::Parser::JSON->new();

  $obj->regis
JSON_File ( G/GE/GETTY/JSON_File-0.004.tar.gz, GETTY, 2014; MetaCPAN )
JSON_File/lib/JSON_File.pm ( view source; MetaCPAN )
package JSON_File;
BEGIN {
  $JSON_File::AUTHORITY = 'cpan:GETTY';
}
# ABSTRACT: Tie a hash or an array to a JSON
$JSON_File::VERSION = '0.004';
use Moo;
use JSON::MaybeXS;
use Path::Class;
use autodi
e;

has json => (
  is => 'ro',
  lazy => 1,
  default => sub {
    my $self = shift;
    my $json = JSON->new()->utf8(1)->canonical(1);
    $json = $json->convert_blessed($self->convert_blessed) if $
sed;
    $json = $json->allow_blessed($self->allow_blessed) if $self->has_allow_blessed;
    $json = $json->allow_unknown($self->allow_unknown) if $self->has_allow_unknown;
    $json = $json->pretty($
JSON-Schema ( T/TO/TOBYINK/JSON-Schema-0.016.tar.gz, TOBYINK, 2014; MetaCPAN )
JSON-Schema/lib/JSON/Schema/Error.pm ( view source; MetaCPAN )
package JSON::Schema::Error;

use 5.010;
use strict;
use overload '""' => \&to_string;

use JSON::Path;

our $AUTHORITY = 'cpan:TOBYINK';
our $VERSION   = '0.016';

sub new
{
	my ($class, $e) = @_;
	r
eturn bless $e, $class;
}

sub property
{
	my ($self) = @_;
	return JSON::Path->new($self->{property});
}

sub message
{
	my ($self) = @_;
	return $self->{message};
}

sub title
{
	my ($self) = @_;
	r
head1 NAME

JSON::Schema::Error - an error that occurred when checking an instance against a schema

=head1 SYNOPSIS

 my $validator = JSON::Schema->new($schema);
 my $json      = from_json( ... );
 m

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