Group
Extension

Matches 35359

POE-Component-Client-Stomp-Utils ( K/KE/KESTEB/POE-Component-Client-Stomp-Utils-0.02.tar.gz, KESTEB, 2011; MetaCPAN )
POE-Component-Client-Stomp-Utils/lib/POE/Component/Client/Stomp/Utils.pm ( view source; MetaCPAN )
n before 
calling these methods. I have found the JSON is a light, and efficent 
serialization method. And just about every other lanaguage has a JSON 
implementation readily avaiable.

Some terminolo
              data => 'this is my packet'});
 $heap->{server}->put($frame);

or

 $message = objToJson($data);
 $frame = $stomp->send({destination => 'test', 
                        data => $message,
HEAP, ARG0];

     my $frame = $stomp->ack({'message-id' => $stomp->message_id});
     my $data = jsonToObj($frame->body);

     handle_data($data);
     $heap->{server}->put($frame);

 }

=back

=hea
RDF-AllegroGraph-Easy ( D/DR/DRRHO/RDF-AllegroGraph-Easy-0.08.tar.gz, DRRHO, 2011; MetaCPAN )
RDF-AllegroGraph-Easy/lib/RDF/AllegroGraph/Catalog3.pm ( view source; MetaCPAN )
legroGraph::Catalog

=cut

use RDF::AllegroGraph::Repository3;
use RDF::AllegroGraph::Utils;

use JSON;
use HTTP::Status;
use Fcntl;
use Data::Dumper;

sub new {
    my $class   = shift;
    my %optio
es');
    die "protocol error: ".$resp->status_line unless $resp->is_success;
    my $repo = from_json ($resp->content);
    return
	map { RDF::AllegroGraph::Repository3->new (%$_, CATALOG => $self) }
RDF-AllegroGraph-Easy ( D/DR/DRRHO/RDF-AllegroGraph-Easy-0.08.tar.gz, DRRHO, 2011; MetaCPAN )
RDF-AllegroGraph-Easy/lib/RDF/AllegroGraph/Transaction4.pm ( view source; MetaCPAN )
arnings;

use base qw(RDF::AllegroGraph::Session4);

use Data::Dumper;
use feature "switch";

use JSON;
use URI::Escape qw/uri_escape_utf8/;

use HTTP::Request::Common;

=pod

=head1 NAME

RDF::Allegr
RDF-AllegroGraph-Easy ( D/DR/DRRHO/RDF-AllegroGraph-Easy-0.08.tar.gz, DRRHO, 2011; MetaCPAN )
RDF-AllegroGraph-Easy/lib/RDF/AllegroGraph/Server4.pm ( view source; MetaCPAN )
::AllegroGraph::Server4;

use strict;
use warnings;

use base qw(RDF::AllegroGraph::Server);

use JSON;
use Data::Dumper;

use RDF::AllegroGraph::Catalog4;
use HTTP::Request::Common;
use HTTP::Status;
gs');
    die "protocol error: ".$resp->status_line unless $resp->is_success;
    my $cats = from_json ($resp->content);
    return 
	map { $_ => RDF::AllegroGraph::Catalog4->new (NAME => $_, SERVER =
RDF-AllegroGraph-Easy ( D/DR/DRRHO/RDF-AllegroGraph-Easy-0.08.tar.gz, DRRHO, 2011; MetaCPAN )
RDF-AllegroGraph-Easy/lib/RDF/AllegroGraph/Repository3.pm ( view source; MetaCPAN )
nings;

use base qw(RDF::AllegroGraph::Repository);

use Data::Dumper;
use feature "switch";

use JSON;
use URI::Escape qw/uri_escape_utf8/;

use HTTP::Request::Common;

=pod

=head1 NAME

RDF::Allegr
 $ua->post ($self->{path} . '/statements',
				       'Content-Type' => 'application/json', 'Content' => encode_json (\@stmts) );
		die "protocol error: ".$resp->status_line.' ('.$resp->content.')' un
->new (PUT => $self->{path} . '/statements',
					       [ 'Content-Type' => 'application/json' ], encode_json (\@stmts));
		my $resp = $ua->request ($requ);
		die "protocol error: ".$resp->status_lin
RDF-AllegroGraph-Easy ( D/DR/DRRHO/RDF-AllegroGraph-Easy-0.08.tar.gz, DRRHO, 2011; MetaCPAN )
RDF-AllegroGraph-Easy/lib/RDF/AllegroGraph/Utils.pm ( view source; MetaCPAN )
if ($d =~ q|^<(.*)>$|) {
	return $1;
    } elsif ($d =~ q|^"(.*)"$|) {
	return $1;
    } elsif (JSON::XS::is_bool $d) {
	return $d;
#	return JSON::XS::true == $d;
    } else {
	return $d;
    }
}

1;
RDF-AllegroGraph-Easy ( D/DR/DRRHO/RDF-AllegroGraph-Easy-0.08.tar.gz, DRRHO, 2011; MetaCPAN )
RDF-AllegroGraph-Easy/lib/RDF/AllegroGraph/Server.pm ( view source; MetaCPAN )

    $self->timeout(10);
    $self->env_proxy;
    $self->default_header('Accept' => "application/json");
    if ($options{AUTHENTICATION}) {
	( $self->{USERNAME}, $self->{PASSWORD} ) = ($options{AUTH
RDF-AllegroGraph-Easy ( D/DR/DRRHO/RDF-AllegroGraph-Easy-0.08.tar.gz, DRRHO, 2011; MetaCPAN )
RDF-AllegroGraph-Easy/lib/RDF/AllegroGraph/Repository.pm ( view source; MetaCPAN )
 $ua->post ($self->{path} . '/statements',
				       'Content-Type' => 'application/json', 'Content' => encode_json (\@stmts) );
		die "protocol error: ".$resp->status_line.' ('.$resp->content.')' un
->new (PUT => $self->{path} . '/statements',
					       [ 'Content-Type' => 'application/json' ], encode_json (\@stmts));
		my $resp = $ua->request ($requ);
		die "protocol error: ".$resp->status_lin
OST => $self->{path} . '/statements/delete',
					       [ 'Content-Type' => 'application/json' ], encode_json (\@facts));
		my $resp = $ua->request ($requ);
		die "protocol error: ".$resp->status_lin
RDF-AllegroGraph-Easy ( D/DR/DRRHO/RDF-AllegroGraph-Easy-0.08.tar.gz, DRRHO, 2011; MetaCPAN )
RDF-AllegroGraph-Easy/lib/RDF/AllegroGraph/Session4.pm ( view source; MetaCPAN )
ings;

use base qw(RDF::AllegroGraph::Repository4);

use Data::Dumper;
use feature "switch";

use JSON;
use URI::Escape qw/uri_escape_utf8/;

use HTTP::Request::Common;

=pod

=head1 NAME

RDF::Allegr
RDF-AllegroGraph-Easy ( D/DR/DRRHO/RDF-AllegroGraph-Easy-0.08.tar.gz, DRRHO, 2011; MetaCPAN )
RDF-AllegroGraph-Easy/lib/RDF/AllegroGraph/Repository4.pm ( view source; MetaCPAN )
nings;

use base qw(RDF::AllegroGraph::Repository);

use Data::Dumper;
use feature "switch";

use JSON;
use URI::Escape qw/uri_escape_utf8/;

use HTTP::Request::Common;

=pod

=head1 NAME

RDF::Allegr
 'application/json',
							'Content' => { 'amount' => $amount });
    die "protocol error: ".$resp->status_line.' ('.$resp->content.')' unless $resp->is_success;
    return @{ from_json ($resp->conte
 $ua->post ($self->{path} . '/statements',
				       'Content-Type' => 'application/json', 'Content' => encode_json (\@stmts) );
		die "protocol error: ".$resp->status_line.' ('.$resp->content.')' un
POE-Component-IRC-Plugin-Eval ( H/HI/HINRIK/POE-Component-IRC-Plugin-Eval-0.07.tar.gz, HINRIK, 2011; MetaCPAN )
POE-Component-IRC-Plugin-Eval/lib/POE/Component/IRC/Plugin/Eval.pm ( view source; MetaCPAN )
DARK_GREEN ORANGE TEAL BROWN);
use POE::Component::IRC::Plugin qw(PCI_EAT_NONE);
use POE::Filter::JSON;
use POE::Wheel::ReadWrite;
use POE::Wheel::SocketFactory;

sub new {
    my ($package, %args) = 
} = POE::Wheel::ReadWrite->new(
        Handle     => $socket,
        Filter     => POE::Filter::JSON->new(),
        InputEvent => 'eval_read',
        ErrorEvent => 'eval_error',
    );

    $eval-
RDF-AllegroGraph-Easy ( D/DR/DRRHO/RDF-AllegroGraph-Easy-0.08.tar.gz, DRRHO, 2011; MetaCPAN )
RDF-AllegroGraph-Easy/lib/RDF/AllegroGraph/Server3.pm ( view source; MetaCPAN )
le for the AGv3 series

=head1 SYNOPSIS

# same interface as RDF::AllegroGraph::Server

=cut

use JSON;
use Data::Dumper;

use RDF::AllegroGraph::Catalog3;

=pod

=head1 INTERFACE

=head2 Methods

=ov
gs');
    die "protocol error: ".$resp->status_line unless $resp->is_success;
    my $cats = from_json ($resp->content);
#    warn Dumper $cats;
    return 
	map { $_ => RDF::AllegroGraph::Catalog3->n
RDF-AllegroGraph-Easy ( D/DR/DRRHO/RDF-AllegroGraph-Easy-0.08.tar.gz, DRRHO, 2011; MetaCPAN )
RDF-AllegroGraph-Easy/lib/RDF/AllegroGraph/Catalog4.pm ( view source; MetaCPAN )
log handle for AGv4

=cut

use RDF::AllegroGraph::Repository4;
use RDF::AllegroGraph::Utils;

use JSON;
use HTTP::Status;
use Fcntl;
use Data::Dumper;

=pod

=head1 INTERFACE

=head2 Constructor

The 
es');
    die "protocol error: ".$resp->status_line unless $resp->is_success;
    my $repo = from_json ($resp->content);
    return
	map { RDF::AllegroGraph::Repository4->new (%$_, CATALOG => $self) }
Geo-Coder-RandMcnally ( G/GR/GRAY/Geo-Coder-RandMcnally-0.01.tar.gz, GRAY, 2011; MetaCPAN )
Geo-Coder-RandMcnally/lib/Geo/Coder/RandMcnally.pm ( view source; MetaCPAN )
ckage Geo::Coder::RandMcnally;

use strict;
use warnings;

use Carp qw(croak);
use Encode ();
use JSON;
use LWP::UserAgent;
use URI;

our $VERSION = '0.01';
$VERSION = eval $VERSION;

sub new {
    my
 return unless $res->is_success;

    # Change the content type of the response from 'application/json' so
    # HTTP::Message will decode the character encoding.
    $res->content_type('text/plain');

    my $content = $res->decoded_content;
    return unless $content;

    my $data = eval { from_json($content) };
    return unless $data;

    my @results = @{ $data->{geocodedLocation} || [] };
  
Facebook ( F/FR/FRANKS/Facebook-0.102.tar.gz, FRANKS, 2011; MetaCPAN )
Facebook/lib/Facebook/Signed.pm ( view source; MetaCPAN )
ose;
use Digest::SHA qw/hmac_sha256/;
use Digest::MD5 qw/md5_hex/;
use MIME::Base64::URLSafe;
use JSON;
use Carp qw/croak/;
use namespace::autoclean;


has canvas_param => (
	isa => 'Str',
	is => 'ro'
d) = split('\.', $facebook_data);
	my $sig  = urlsafe_b64decode($encoded_sig);
	my $data = decode_json(urlsafe_b64decode($payload));
	my $expected_sig = hmac_sha256($payload, $app_secret);

	if ($sig 
App-Syndicator ( R/RG/RGE/App-Syndicator-0.0061.tar.gz, RGE, 2011; MetaCPAN )
App-Syndicator/lib/App/Syndicator.pm ( view source; MetaCPAN )

        is => 'ro',
        isa => File,
        required => 1,
        default => "$BASE/config.json"
    );

    has sources => (
        is => 'rw',
        isa => UriArray,
        coerce => 1,
 
head1 USAGE

 # first run
 $ syndicator --init

 # add your own feeds
 $ vim ~/.syndicator/config.json 

 # run
 $ syndicator 2> errors.log

 $ syndicator --config=config.any --db=sqlite.db

=head2 EX
App-I18N ( C/CO/CORNELIUS/App-I18N-0.034.tar.gz, CORNELIUS, 2011; MetaCPAN )
App-I18N/lib/App/I18N/Command/Gen.pm ( view source; MetaCPAN )
d" => "msgstr"
        ....
    );
    ?>
    ....

For JSON

    en.json:
    {
        "msgid..." : "msgstr"
        ...
    };

    zh_tw.json:
    {
        ....
    };

Static JS

    var dict;
 
g) = ($pofile =~ m{(\w+)\.po$} );   # get en_US or zh_TW ... etc
            my $ext = $type;  # "json , js, pl, pm, php";
            my $outfile = File::Spec->join( $output_dir , "$lang.$ext" );

  
   if( $type eq 'json' ) {
                use JSON::XS;
                print FH encode_json( \%entries );
            }
            elsif ( $type eq 'js' ) {
                use JSON::XS;
          
App-I18N ( C/CO/CORNELIUS/App-I18N-0.034.tar.gz, CORNELIUS, 2011; MetaCPAN )
App-I18N/lib/App/I18N/DB.pm ( view source; MetaCPAN )
t_lexicon( $lexicon );
    $lme->write_po($pofile);
}

=pod
package MsgEntry;
use Any::Moose;
use JSON::XS;
use overload 
    '""' => \&to_string,
    '%{}' => \&to_hash;


has id => ( is => 'rw', isa
lang     => $self->lang,
        msgid    => $self->msgid,
        msgstr   => $self->msgstr,
    );
}

sub to_string {
    my $self = shift;
    return encode_json( { $self->to_hash } );
}
=cut


1;
App-XUL ( K/KI/KITOMER/App-XUL-0.07.tar.gz, KITOMER, 2011; MetaCPAN )
App-XUL/misc/server.pl ( view source; MetaCPAN )
se Socket;
use IO::Socket;
use LWP::Simple qw(get);
use URI::Escape qw(uri_escape);
use JSON qw(to_json from_json);
use Data::Dumper;

# get commandline arguments
my ($ModulesPath, $Port) = @ARGV;

# 
 else {
		$data{"_method"} = "ERROR";
	}
		
	# analyse request and create answer
	my $info = from_json($data{'data'});
	
	#print STDERR Dumper($info);
	
	my $quit = 0;
	$quit = 1 if exists $info->{'ev
t "Content-type: application/json", Socket::CRLF;
	print $client "Content-type: text/html", Socket::CRLF;
	print $client Socket::CRLF;
	print $client ((($answer && to_json($answer)) || '{"action":"non
Padre-Plugin-WebGUI ( P/PD/PDONELAN/Padre-Plugin-WebGUI-1.002.tar.gz, PDONELAN, 2011; MetaCPAN )
Padre-Plugin-WebGUI/lib/Padre/Document/WebGUI/Asset.pm ( view source; MetaCPAN )
       func    => 'save',
            assetId => $asset->{assetId},
            props   => encode_json($asset),
        }
    );
    unless ( $response->header('Padre-Plugin-WebGUI') ) {
        my $e
    = shift;
    my $content = shift;

    # TRACE($content) if DEBUG;

    use JSON;
    my $asset = eval { decode_json($content) };
    if ($@) {
        TRACE($@) if DEBUG;
        warn $@;
       

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