Group
Extension

Matches 35358

WebAPI-DBIC ( T/TI/TIMB/WebAPI-DBIC-0.004002.tar.gz, TIMB, 2015; MetaCPAN )
WebAPI-DBIC/lib/WebAPI/DBIC/Resource/HAL/Role/DBIC.pm ( view source; MetaCPAN )
HAL::Role::DBIC::VERSION = '0.004002';

use Carp qw(croak confess);
use Devel::Dwarn;
use JSON::MaybeXS qw(JSON);

use Moo::Role;


requires 'get_url_for_item_relationship';
requires 'render_item_as_p
e => $curie,
         href => "http://docs.acme.com/relations/{rel}", # XXX
         templated => JSON->true,
       }];
   }

    return $data;
}


sub _render_prefetch {
    my ($self, $item, $data,
d
        # resource and not the parent."
        # See http://blog.stateless.co/post/13296666138/json-linking-with-hal
        if (not defined $subitem) {
            $data->{_embedded}{$rel} = undef
WebAPI-DBIC ( T/TI/TIMB/WebAPI-DBIC-0.004002.tar.gz, TIMB, 2015; MetaCPAN )
WebAPI-DBIC/lib/WebAPI/DBIC/Resource/ActiveModel.pm ( view source; MetaCPAN )
ActiveModel support for WebAPI::DBIC

=head2 Media Type

These roles respond to the C<application/json> media type.
(This is a very common 'default' media type for web data services.)

=head2 ActiveMo
zhangbo-NLP-plugin_eng ( Z/ZH/ZHANGBO/zhangbo-NLP-plugin_eng-0.002.tar.gz, ZHANGBO, 2015; MetaCPAN )
zhangbo-NLP-plugin_eng/lib/zhangbo/NLP/sim_sy2.pl ( view source; MetaCPAN )
#!/usr/bin/perl
#use JSON::XS;
 use Clone qw(clone);



use MongoDB;
use Smart::Comments;
use lib "/home/wyb/shell/";
use Conn_mongo_jc;
use Data::Dumper;
use IO::File;
#use Add_info;


# http://poe.p
zhangbo-NLP-plugin_eng ( Z/ZH/ZHANGBO/zhangbo-NLP-plugin_eng-0.002.tar.gz, ZHANGBO, 2015; MetaCPAN )
zhangbo-NLP-plugin_eng/lib/zhangbo/NLP/engine_rea2.pl ( view source; MetaCPAN )
#!/usr/bin/perl
#use JSON::XS;
 use Clone qw(clone);
use MongoDB;
use Smart::Comments;
use lib "/home/wuyabo/shell/";
use Conn_mongo_jc;
use Data::Dumper;
use IO::File;
#use Add_info;

open(FDst,"stop
zhangbo-NLP-plugin_eng ( Z/ZH/ZHANGBO/zhangbo-NLP-plugin_eng-0.002.tar.gz, ZHANGBO, 2015; MetaCPAN )
zhangbo-NLP-plugin_eng/lib/zhangbo/NLP/sim2.pl ( view source; MetaCPAN )
!/usr/bin/perl
#词词距离计算
#输入为:
#老虎
#鲜花
#月亮
#狮子
 use POSIX;
#use JSON::XS;
 use Clone qw(clone);




use MongoDB;
use Smart::Comments;
use lib "/home/wyb/shell/";
#use
APP-REST-RestTestSuite ( R/RK/RKMITHUN/APP-REST-RestTestSuite-0.03.tar.gz, RKMITHUN, 2015; MetaCPAN )
APP-REST-RestTestSuite/lib/APP/REST/RestTestSuite.pm ( view source; MetaCPAN )
quest body within
# [START] and [END] tags
#   request_body             :
#   [START] 
#   xml or json or  form based 
#   [END]
################
#Set below values to configure the base URL for all te
zhangbo-NLP-plugin_eng ( Z/ZH/ZHANGBO/zhangbo-NLP-plugin_eng-0.002.tar.gz, ZHANGBO, 2015; MetaCPAN )
zhangbo-NLP-plugin_eng/lib/zhangbo/NLP/json.pl ( view source; MetaCPAN )
#!/usr/bin/perl
use JSON::XS;
use Encode;
use Data::Dumper;
use strict;
use warnings;

my $content = "这是一段中文内容";

print "转码前的内部表示:\n";
print Dumper $content, "\n";
pr
int "转码前的JSON:\n";
print JSON::XS->new->utf8->encode({
    content => $content
}), "\n";


# 对内容做一次转码就可以正常输出JSON了
$content = decode("utf-8", $content);
print 
"转码后的内部表示:\n";
print Dumper $content, "\n";
print "转码后的JSON:\n";
print JSON::XS->new->utf8->encode({
    content => $content
}), "\n";


zhangbo-NLP-plugin_eng ( Z/ZH/ZHANGBO/zhangbo-NLP-plugin_eng-0.002.tar.gz, ZHANGBO, 2015; MetaCPAN )
zhangbo-NLP-plugin_eng/lib/zhangbo/NLP/engine_dis.pl ( view source; MetaCPAN )
#!/usr/bin/perl
use Encode;
#use JSON::XS;
 use Clone qw(clone);



use MongoDB;
use Smart::Comments;
use lib "/home/wuyabo/shell/";
use Conn_mongo_jc;
use Data::Dumper;
use IO::File;
#use Add_info;

WebAPI-DBIC ( T/TI/TIMB/WebAPI-DBIC-0.004002.tar.gz, TIMB, 2015; MetaCPAN )
WebAPI-DBIC/lib/WebAPI/DBIC/Resource/ActiveModel/Role/Set.pm ( view source; MetaCPAN )
use Moo::Role;

use Carp qw(confess);

requires '_build_content_types_provided';
requires 'encode_json';
requires 'set';
requires 'render_activemodel_response';
requires 'activemodel_type';


around '
shift @$types, { 'application/json' => 'to_json_as_activemodel' };
    return $types;
};


sub to_json_as_activemodel {
    my $self = shift;
    return $self->encode_json( $self->render_activemodel_r
WebAPI-DBIC ( T/TI/TIMB/WebAPI-DBIC-0.004002.tar.gz, TIMB, 2015; MetaCPAN )
WebAPI-DBIC/lib/WebAPI/DBIC/Resource/HAL/Role/ItemWritable.pm ( view source; MetaCPAN )
N = '0.004002';

use Carp qw(croak confess);
use Devel::Dwarn;

use Moo::Role;


requires 'decode_json';
requires 'request';

requires '_pre_update_resource_method';


around '_build_content_types_acc
 $types = $self->$orig();
    unshift @$types, { 'application/hal+json' => 'from_hal_json' };
    return $types;
};


sub from_hal_json {
    my $self = shift;
    $self->_pre_update_resource_method( 
"_do_update_embedded_resources_hal" );
    my $data = $self->decode_json( $self->request->content );
    $self->update_resource($data, is_put_replace => 0);
    return;
}


sub _do_update_embedded_res
GPLVote-SignDoc-Client ( U/UN/UNCLEANDY/GPLVote-SignDoc-Client-0.9.tgz, UNCLEANDY, 2015; MetaCPAN )
GPLVote-SignDoc-Client/lib/GPLVote/SignDoc/Client.pm ( view source; MetaCPAN )
:Random::Secure qw(random_bytes);
use MIME::Base64;
use Digest::SHA qw(sha256_base64 sha256);
use JSON;
use utf8;
use Encode;


use strict;
use Exporter;
use vars qw($VERSION);
use vars qw($VERSION @I
sh {
  my ($json) = @_;
  my $h;
  my $js = JSON->new();
  # for invalid json
  $js->relaxed(1);
  # convert to utf-8
  $js->utf8;
  eval {
    # eval required for no exception if bad json
    $h = $j
@_;

  my $s = '';
  my $js = JSON->new();
  # for invalid json
  $js->relaxed(1);
  $js->pretty(1) if ($pretty);
  eval {
    # eval required for no exception if bad json
    $s = $js->encode($h);
  
WebAPI-DBIC ( T/TI/TIMB/WebAPI-DBIC-0.004002.tar.gz, TIMB, 2015; MetaCPAN )
WebAPI-DBIC/lib/WebAPI/DBIC/Resource/Role/Item.pm ( view source; MetaCPAN )
e;


requires 'render_item_as_plain_hash';
requires 'id_unique_constraint_name';
requires 'encode_json';
requires 'set';


has id => (         # array of 1 or more key values from url path
   is => 'r
ent_types_provided {
    return [ { 'application/vnd.wapid+json' => 'to_json_as_plain' } ]
}

sub to_json_as_plain { return $_[0]->encode_json($_[0]->render_item_as_plain_hash($_[0]->item)) }

sub res
zhangbo-NLP-plugin_eng ( Z/ZH/ZHANGBO/zhangbo-NLP-plugin_eng-0.002.tar.gz, ZHANGBO, 2015; MetaCPAN )
zhangbo-NLP-plugin_eng/lib/zhangbo/NLP/engine_k5.pl ( view source; MetaCPAN )
#!/usr/bin/perl
use Algorithm::Kmeanspp;
#use JSON::XS;
 use Clone qw(clone);



use MongoDB;
use Smart::Comments;
use lib "/home/wuyabo/shell/";
use Conn_mongo_jc;
use Data::Dumper;
use IO::File;
#us
zhangbo-NLP-plugin_eng ( Z/ZH/ZHANGBO/zhangbo-NLP-plugin_eng-0.002.tar.gz, ZHANGBO, 2015; MetaCPAN )
zhangbo-NLP-plugin_eng/lib/zhangbo/NLP/shang_xia_word_server.pl ( view source; MetaCPAN )
 Tree::Simple;
use Socket;
use IO::Handle;
use IO::Select;
use IO::Socket::INET;
 use POSIX;
#use JSON::XS;
use Smart::Comments;
 use Clone qw(clone);
use POE qw(Component::Server::TCP);



use lib "/
WebAPI-DBIC ( T/TI/TIMB/WebAPI-DBIC-0.004002.tar.gz, TIMB, 2015; MetaCPAN )
WebAPI-DBIC/lib/WebAPI/DBIC/Resource/JSONAPI.pm ( view source; MetaCPAN )
kage WebAPI::DBIC::Resource::JSONAPI;
$WebAPI::DBIC::Resource::JSONAPI::VERSION = '0.004002';

1;

__END__

=pod

=encoding UTF-8

=head1 NAME

WebAPI::DBIC::Resource::JSONAPI

=head1 VERSION

version
bAPI::DBIC::Resource::JSONAPI - JSON API support for WebAPI::DBIC

=head2 Media Type

These roles respond to the C<application/vnd.api+json> media type.

=head2 JSONAPI

The JSON API media type is des
compromising readability, flexibility, and discoverability.

See L<http://jsonapi.org/> for more details.

Development of JSON API support for WebAPI::DBIC has stalled due to instability
of the specif
WebService-Cryptsy ( Z/ZO/ZOFFIX/WebService-Cryptsy-1.008007.tar.gz, ZOFFIX, 2015; MetaCPAN )
WebService-Cryptsy/lib/WebService/Cryptsy.pm ( view source; MetaCPAN )
package WebService::Cryptsy;

use Moo;

our $VERSION = '1.008007'; # VERSION

use URI;
use JSON::MaybeXS;
use LWP::UserAgent;
use Digest::SHA qw/hmac_sha512_hex/;
use HTTP::Request::Common qw/POST/;

lf, $json, $method ) = @_;

    unless ( $json ) {
        $self->error('Network error: got no data');
        return
    }

    $self->error( undef );

    my $decoded = eval { decode_json( $json ); 
};
    if ( $@ ) {
        $self->error('JSON parsing error: ' . $@);
        return;
    }

    unless ( $decoded and $decoded->{success} ) {
        $self->error( $decoded && $decoded->{error}
     
WebService-Intercom ( R/RC/RCONOVER/WebService-Intercom-0.09.tar.gz, RCONOVER, 2015; MetaCPAN )
WebService-Intercom/lib/WebService/Intercom.pm ( view source; MetaCPAN )
WP::UserAgent;
    use HTTP::Response;
    use HTTP::Request::Common qw(DELETE POST GET);
    use JSON::XS;
    use MIME::Base64;
    use Kavorka qw( multi method );


    has 'ua' => (is => 'ro', def
st_request_at?,
                                       Maybe[Bool] :$new_session?) {

        my $json_content = {
            signed_up_at => $signed_up_at,
            name => $name,
            las
           $json_content->{user_id} = $user_id;
        }
        if (defined($email)) {
            $json_content->{email} = $email;
        }
        if (defined($id)) {
            $json_content->{
Net-Presto ( J/JI/JIRO/Net-Presto-0.02.tar.gz, JIRO, 2015; MetaCPAN )
Net-Presto/lib/Net/Presto.pm ( view source; MetaCPAN )
package Net::Presto;
use Moo;
use Furl;
use Carp qw(confess);
use Scalar::Util qw(blessed);
use JSON::XS;

our $VERSION = "0.02";

use Net::Presto::Statement;

has protocol => (
    is => 'ro',
    is
s, $query);
    confess $response->status_line unless $response->is_success;
    my $res = decode_json $response->content;
    Net::Presto::Statement->create(
        furl    => $self->furl,
        h
Labyrinth ( B/BA/BARBIE/Labyrinth-5.32.tar.gz, BARBIE, 2015; MetaCPAN )
Labyrinth/lib/Labyrinth/IPAddr.pm ( view source; MetaCPAN )
# Library Modules

use Labyrinth::Globals;
use Labyrinth::DBUtils;
use Labyrinth::Variables;

use JSON::XS;
use URI::Escape;
use WWW::Mechanize;

# -------------------------------------
# The Subs

=h
->new();
    $mech->get($url);
    if($mech->success()) {
        my $json = $mech->content();
        my $data = decode_json($json);
        return $data;
    }

    return;
}

1;

__END__

=back

=h
Net-Presto ( J/JI/JIRO/Net-Presto-0.02.tar.gz, JIRO, 2015; MetaCPAN )
Net-Presto/lib/Net/Presto/Statement.pm ( view source; MetaCPAN )
package Net::Presto::Statement;
use Moo;
use JSON::XS;
use Carp qw(confess);

use constant DEBUG => $ENV{PERL_PRESTO_DEBUG} ? 1 : 0;

has furl => (
    is => 'ro',
    required => 1,
);

has headers =
url " . $response->content || '' if DEBUG;
    if ($response->content) {
        my $res = decode_json $response->content;
        $self->_set_state($res);
        return $res;
    } else {
        $s

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