Group
Extension

Matches 35359

POE-Component-Server-Bayeux ( E/EW/EWATERS/POE-Component-Server-Bayeux-0.04.tar.gz, EWATERS, 2009; MetaCPAN )
POE-Component-Server-Bayeux/lib/POE/Component/Server/Bayeux/Client.pm ( view source; MetaCPAN )
comment filtered JSON, pass this along to the
    # request which will be encapsulating the results.
    if ($self->flags->{'json-comment-filtered'}) {
        $message->request->json_comment_filtered
Template-Plugin-SimpleJson ( F/FA/FAXIOMAN/Template-Plugin-SimpleJson-0.01.tar.gz, FAXIOMAN, 2009; MetaCPAN )
Template-Plugin-SimpleJson/lib/Template/Plugin/SimpleJson.pm ( view source; MetaCPAN )
package Template::Plugin::SimpleJson;

use 5.006;
use strict;

our $VERSION = '0.01';

use Template::Plugin;
use base qw( Template::Plugin );
use JSON;

sub load {
	my $class = shift;
	my $context = s

	return $self;
}

sub  fromJson{
	my $self = shift;
	my $jsonText = shift;
	return from_json($jsonText);
}

sub  toJson{
	my $self = shift;
	my $o = shift;
	return to_json($o);
}

1;

__END__

=head1
e::Plugin::SimpleJson - Simple JSON methods for Template Toolkit

=head1 SYNOPSIS

  [% USE SimpleJson %]

  [% scalar = SimpleJson.fromJson(json_text) %]
  [% text = SimpleJson.toJson(scalar) %]

=he
Net-APNS-Persistent ( A/AU/AUFFLICK/Net-APNS-Persistent-0.02.tar.gz, AUFFLICK, 2009; MetaCPAN )
Net-APNS-Persistent/lib/Net/APNS/Persistent.pm ( view source; MetaCPAN )
;

use Encode qw(decode encode encode_utf8);

# NB: Using JSON::XS as not all JSON modules allowed
# by JSON::Any do unicode correctly
use JSON::XS;

__PACKAGE__->mk_accessors(qw(
                    
        max_payload_size
                                command
                                _json
                           ));

my %defaults = (
    host_production  => 'gateway.push.apple.com'
,
        
        %{$init_vals}
       });

    $self->_queue([]);

    $self->_json(JSON::XS->new());
    $self->_json->utf8(1);

    return $self;
}

sub _apply_to_alert_body {
    my ($payload, $f
Catalyst-Authentication-Credential-Facebook ( J/JE/JESSESTAY/Catalyst-Authentication-Credential-Facebook-0.01000.tar.gz, JESSESTAY, 2009; MetaCPAN )
Catalyst-Authentication-Credential-Facebook/lib/Catalyst/Authentication/Credential/Facebook.pm ( view source; MetaCPAN )
:API instance
    $self->_facebook(
		WWW::Facebook::API->new(
			'desktop'	=> 0,
			'format'	=> 'JSON',
			'parse'		=> 1,
			%{ $c->config->{'facebook'} || { } },
		)
	);

    return $self;
}

sub au
App-Bulkmail ( P/PM/PMAKHOLM/App-Bulkmail-0.02.tar.gz, PMAKHOLM, 2009; MetaCPAN )
App-Bulkmail/lib/App/Bulkmail.pm ( view source; MetaCPAN )
$data = YAML::LoadFile( $file );

        } elsif ( $file =~ /\.json$/i ) {
            require JSON;
            $data = JSON::from_json( File::Slurp::read_file( $file ) );

        } elsif ( $file =
Net-APNS-Persistent ( A/AU/AUFFLICK/Net-APNS-Persistent-0.02.tar.gz, AUFFLICK, 2009; MetaCPAN )
Net-APNS-Persistent/lib/Net/APNS/Feedback.pm ( view source; MetaCPAN )
;
use strict;
use warnings;

our $VERSION = '0.02';

use base 'Net::APNS::Persistent::Base';

use JSON::XS;

# ensure we're in byte-oriented mode
use bytes;

my %defaults = (
    host_production => 'f
Geo-Google-MapObject ( S/SI/SILASMONK/Geo-Google-MapObject-0.06.tar.gz, SILASMONK, 2009; MetaCPAN )
Geo-Google-MapObject/lib/Geo/Google/MapObject.pm ( view source; MetaCPAN )
 calculation of the center or zoom all
the markers must be in the form "decimal,decimal". The C<< json >> method will delete this
as it has no meaning once the zoom level and center have been determin
bsent the Google API will be allowed to set
the format as it sees fit. Note that although the C<< json >> method will pass this on, it seems to have no meaning
in the dynamic API.

=item maptype

This
id's described in L<http://code.google.com/apis/maps/documentation/staticmaps/#MapTypes>. The C<< json >> method will translate these into numerical codes roadmap => 0, satellite => 1, terrain => 2 an
Osgood-Server ( G/GP/GPHAT/Osgood-Server-2.0.1.tar.gz, GPHAT, 2009; MetaCPAN )
Osgood-Server/lib/Osgood/Server/Controller/Script.pm ( view source; MetaCPAN )
;

sub add : Local {
    my ($self, $c, $arg) = @_;

    my $json = MIME::Base64::decode($arg);

    my $el = Osgood::EventList->thaw($json);

    my ($count, $error) = $c->add_from_list($el);

    $c
File-HashCache-JavaScript ( D/DA/DAVID/File-HashCache-JavaScript-0.10.0.0.tar.gz, DAVID, 2009; MetaCPAN )
File-HashCache-JavaScript/lib/File/HashCache.pm ( view source; MetaCPAN )
est::MD5 qw(md5_hex);
use File::Basename;
use File::Slurp qw(read_file write_file);
use JSON qw(to_json from_json);

sub max_timestamp(@) { max map { (stat $_)[9] || 0 } @_ } # Obviously 9 is mtime

s
"couldn't cache $script->{path}";
          write_file($config->{cache_file}, { atomic => 1 }, to_json($config->{cache}, {pretty => 1})) or warn "Couldn't save cache control file";
        }
    }
   
            }, $class;
    $config->{cache_file} ||= "$config->{cache_dir}/cache.json";
    $config->{cache} = from_json( read_file($config->{cache_file}) ) if -f $config->{cache_file};
    my $cache_
File-HashCache-JavaScript ( D/DA/DAVID/File-HashCache-JavaScript-0.10.0.0.tar.gz, DAVID, 2009; MetaCPAN )
File-HashCache-JavaScript/lib/File/HashCache/JavaScript.pm ( view source; MetaCPAN )
nify => 1 >>

Whether or not to minify the Javascript.

=item C<< cache_file => "$cache_dir/cache.json" >>

Where to put the cache control file.

=back

=item B<C<hash($path_to_js_file)>>

This method
Osgood-Server ( G/GP/GPHAT/Osgood-Server-2.0.1.tar.gz, GPHAT, 2009; MetaCPAN )
Osgood-Server/lib/Osgood/Server/Controller/Root.pm ( view source; MetaCPAN )
   $count++;
        }
    }

    # set response type
    $c->response->content_type('application/json');
    # return serialized list
    $c->response->body($net_list->freeze);
}

=head2 event_POST

NetSDS ( R/RA/RATTLER/NetSDS-1.301.tar.gz, RATTLER, 2009; MetaCPAN )
NetSDS/lib/NetSDS/Session.pm ( view source; MetaCPAN )
from JSON string when interacting with Memcached.

=cut

package NetSDS::Session;

use 5.8.0;
use strict;
use warnings;

use version; our $VERSION = '1.301';

use Cache::Memcached::Fast;
use JSON;

us
         { address => $mc_host . ':' . $mc_port } ],
			serialize_methods => [ \&JSON::encode_json, \&JSON::decode_json ],
		}
	);

	if ( $self->{memcached} ) {
		return $self;
	} else {
		return $cla
LSO

=over

=item * L<Cache::Memcached::Fast> - XS implementation of Memcached API

=item * L<JSON> - JSON encoding/decoding API

=back

=head1 AUTHORS

Michael Bochkaryov <misha@rattler.kiev.ua>

=he
NetSDS ( R/RA/RATTLER/NetSDS-1.301.tar.gz, RATTLER, 2009; MetaCPAN )
NetSDS/lib/NetSDS/EDR.pm ( view source; MetaCPAN )
S EDR data is written to plain text files as JSON structures one row per record.

=cut

package NetSDS::EDR;

use 5.8.0;
use strict;
use warnings;

use JSON;
use NetSDS::Util::DateTime;
use base 'NetS
 %params ) = @_;

	my $self = $class->SUPER::new(%params);

	# Create JSON encoder for EDR data processing
	$self->{encoder} = JSON->new();

	# Initialize file to write
	if ( $params{filename} ) {
		$

=item B<write($rec1 [,$rec2 [...,$recN]])> - write EDR to file

This methods converts records to JSON and write to file.
Each record writing to one separate string.

Example:

	$edr->write({from => '
KiokuDB-Backend-Files ( N/NU/NUFFIN/KiokuDB-Backend-Files-0.06.tar.gz, NUFFIN, 2009; MetaCPAN )
KiokuDB-Backend-Files/lib/KiokuDB/Backend/JSPON.pm ( view source; MetaCPAN )

our $VERSION = "0.06";

extends qw(KiokuDB::Backend::Files);

has '+serializer' => ( default => "json" );

__PACKAGE__->meta->make_immutable;

__PACKAGE__

__END__

=pod

=head1 NAME

KiokuDB::Backen
ckend with the serializer default
set to C<json> for backwards compatibility.

L<http://www.jspon.org/|JSPON> is a standard for encoding object graphs in
JSON.

The representation is based on explicit
 ID based references, and so is simple
enough to be stored in JSON.

=cut
KiokuDB-Backend-Files ( N/NU/NUFFIN/KiokuDB-Backend-Files-0.06.tar.gz, NUFFIN, 2009; MetaCPAN )
KiokuDB-Backend-Files/lib/KiokuDB/Backend/Files.pm ( view source; MetaCPAN )
#!/usr/bin/perl

package KiokuDB::Backend::Files;
use Moose;

use Carp qw(croak);

use JSON;

use File::Spec;
use File::Path qw(remove_tree make_path);

use Directory::Transactional;

use Data::Stream
NetSDS ( R/RA/RATTLER/NetSDS-1.301.tar.gz, RATTLER, 2009; MetaCPAN )
NetSDS/lib/NetSDS/Class/Abstract.pm ( view source; MetaCPAN )
ed data structure of object that may be used when some
code requires non blessed structures (like JSON serialization).

Example:

	my $var = $obj->unbless();

=cut

#----------------------------------
NetSDS ( R/RA/RATTLER/NetSDS-1.301.tar.gz, RATTLER, 2009; MetaCPAN )
NetSDS/lib/NetSDS/App/JSRPC.pm ( view source; MetaCPAN )
============================

=head1 NAME

NetSDS::App::JSRPC - JSON-RPC server framework

=head1 SYNOPSIS

	#!/usr/bin/env perl
	# JSON-RPC server
	
	use 5.8.0;
	use warnings;
	use strict;

	JServer-
vailable via JSON-RPC
	sub sum {
		my ($self, $param) = @_;
		return $$param[0] + $$param[1];
	}

	1;

=head1 DESCRIPTION

C<NetSDS::App::JSRPC> module implements framework for common JSON-RPC based
s
erver application. JSON-RPC is a HTTP based protocol providing remote
procudure call (RPC) functionality using JSON for requests and responses
incapsulation.

This implementation is based on L<NetSDS:
WebService-YQL ( V/VI/VIORELS/WebService-YQL-0.04.tar.gz, VIORELS, 2009; MetaCPAN )
WebService-YQL/lib/WebService/YQL.pm ( view source; MetaCPAN )
ebService::YQL;

use strict;
use warnings;

use URI;
use URI::QueryParam;
use LWP::UserAgent;
use JSON::Any;

BEGIN {
    use vars qw($VERSION);
    $VERSION     = '0.04';
}

=head1 NAME

WebService::
oo Query Language service. Instead of 
manually sending a GET request to Yahoo and getting XML or JSON you can 
now use a simple function call and get a deep Perl data structure.

=head1 USAGE

  my $
...

    # Instantiate helper objects
    $self->{'_ua'} = LWP::UserAgent->new;
    $self->{'_json'} = JSON::Any->new;

    return $self;
}

=head2 query

Run an YQL query. Accepts one argument, the q
NetSDS ( R/RA/RATTLER/NetSDS-1.301.tar.gz, RATTLER, 2009; MetaCPAN )
NetSDS/lib/NetSDS.pm ( view source; MetaCPAN )
.

=item * L<NetSDS::App::FCGI> - FastCGI applicatrion framework

=item * L<NetSDS::App::JSRPC> - JSON-RPC server framework

=item * L<NetSDS::Conf> - configuration files management class.

=item * L<
WWW-Moviepilot ( F/FW/FWIE/WWW-Moviepilot-0.04.tar.gz, FWIE, 2009; MetaCPAN )
WWW-Moviepilot/lib/WWW/Moviepilot.pm ( view source; MetaCPAN )
package WWW::Moviepilot;

use warnings;
use strict;

use Carp;
use JSON::Any;
use LWP::UserAgent;
use URI;
use URI::Escape;

use WWW::Moviepilot::Movie;

=head1 NAME

WWW::Moviepilot - Interface to th
CKAGE__ . "->movie()";
    }
    $url .= join '-id-', map { uri_escape($_) } @args;
    $url .= '.json';

    my $uri = URI->new( $url );
    $uri->query_form( api_key => $self->api_key );
    my $res
ne;
    }

    my $json = JSON::Any->from_json( $res->decoded_content );

    my $movie = WWW::Moviepilot::Movie->new({ m => $self });
    $movie->populate({ data => { movie => $json } });
    return 

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