Group
Extension

Matches 35359

GX ( J/JA/JAU/GX/GX-0.2000_01.tar.gz, JAU, 2011; MetaCPAN )
GX/lib/GX/MIME/Util.pm ( view source; MetaCPAN )
      # RFC 2045, RFC 2046
    'js'    => 'text/javascript',           # RFC 4329
    'json'  => 'application/json',          # RFC 4627
    'pdf'   => 'application/pdf',           # RFC 3778
    'png
GX ( J/JA/JAU/GX/GX-0.2000_01.tar.gz, JAU, 2011; MetaCPAN )
GX/lib/GX/Serializer.pm ( view source; MetaCPAN )
he following classes inherit directly from L<GX::Serializer>:

=over 4

=item * L<GX::Serializer::JSON>

=item * L<GX::Serializer::Storable>

=back

=head1 AUTHOR

JE<ouml>rg A. Uzarek E<lt>uzarek@run
App-Pocosi ( H/HI/HINRIK/App-Pocosi-0.03.tar.gz, HINRIK, 2011; MetaCPAN )
App-Pocosi/lib/App/Pocosi.pm ( view source; MetaCPAN )
0.0.1"
     rport:    12345
     auto:     true

The configuration file is in L<YAML|YAML> or L<JSON|JSON> format. It consists
of a hash containing the options described in the above code example. Onl
Scrappy ( A/AW/AWNCORP/Scrappy-0.94112090.tar.gz, AWNCORP, 2011; MetaCPAN )
Scrappy/lib/Scrappy/Scraper.pm ( view source; MetaCPAN )
~ m{^text/}
        || $self->worker->content_type
        =~ m{^application/(atom|css|javascript|json|rss|xml)})
    {

        # text
        $self->worker->response->decode;
        print {$fh} $se
Net-Dynect-REST ( J/JE/JEB/Net-Dynect-REST-0.09.tar.gz, JEB, 2011; MetaCPAN )
Net-Dynect-REST/lib/Net/Dynect/REST/Response.pm ( view source; MetaCPAN )
ts (as a hash ref) of:

=over 4

=item * format => $format

The valid format of the mssage, eithe JSON, YAML, XML, or HTML.

=item * content => $content

The decoded content from the HTTP response.

=
d $args{request_time};

    if ( $args{format} eq "JSON" ) {
        require JSON;
        JSON->import('decode_json');
        my $hash = decode_json( $args{content} );
        $self->job_id( $hash->
Web-oEmbed-Common ( E/EV/EVO/Web-oEmbed-Common-0.05.tar.gz, EVO, 2011; MetaCPAN )
Web-oEmbed-Common/lib/Web/oEmbed/Common.pm ( view source; MetaCPAN )
k', 
			api  => 'http://qik.com/api/oembed.json', 
			url  => 'http://qik.com/*', 
		},
		{
			name => 'Vimeo', 
			api  => 'http://vimeo.com/api/oembed.json', 
			url  => 'http://(www.)vimeo.com/*', 
                                                      
			api  => 'http://www.hulu.com/api/oembed.json', 
			url  => 'http://*hulu.com/watch/*', 
		},
		{ 
			name => 'PhotoBucket',                   
ordie.com/videos/*', 
		},
		{ 
			name => 'Pownce',
			api  => 'http://api.pownce.com/2.1/oembed.json', 
			url  => 'http://*.pownce.com/*', 
		},
		{ 
			name => 'Poll Everywhere',                  
WWW-TheMovieDB-Search ( P/PJ/PJOBSON/WWW-TheMovieDB-Search-0.03.tar.gz, PJOBSON, 2011; MetaCPAN )
WWW-TheMovieDB-Search/lib/WWW/TheMovieDB/Search.pm ( view source; MetaCPAN )
e datatype to be returned, default is xml.

	$api->type('xml');
	$api->type('yaml');
	$api->type('json');

=item Movie_browse( %data )

C<< <http://api.themoviedb.org/2.1/methods/Movie.browse> >>

The
Crashplan-Client ( A/AA/AASSAD/Crashplan-Client-0.003_0.tar.gz, AASSAD, 2011; MetaCPAN )
Crashplan-Client/lib/Crashplan/Client/Org.pm ( view source; MetaCPAN )
package Crashplan::Client::Org;

use strict;
use warnings;
use JSON;

our $VERSION = '0.003_0';

=head1 NAME

Crashplan::Client::Org - Object representation of Crashplan PROe server's entity

=head1 S
rent object
    my @attributes = grep {!/^rest|rest_header$/} keys %$self;

    my $body = encode_json( { map {$_ => $self->{$_}} @attributes} );

    $self->{rest}->PUT($self->url."/".$self->id,$body
Net-Dynect-REST ( J/JE/JEB/Net-Dynect-REST-0.09.tar.gz, JEB, 2011; MetaCPAN )
Net-Dynect-REST/lib/Net/Dynect/REST/Request.pm ( view source; MetaCPAN )
:

=over 4

=item * JSON

=item * XML

=item * YAML

=item * HTML

=back

=cut

sub format {
    my $self = shift;
    if (@_) {
        my $new = shift;
        if ( $new !~ /^JSON|XML|YAML|HTML$/ ) 
rp "Invalid format. Must be one of JSON, XML, YAML, or HTML.";
            return;
        }
        $self->{format} = $new;
    }
    return $self->{format} || "JSON";
}

=item mime_type

This return
      carp "format() needs to be set";
        return;
    }
    return "application/json" if $self->format eq "JSON";
    return "text/xml"         if $self->format eq "XML";
    return "application/
Geo-Routing ( A/AV/AVAR/Geo-Routing-0.11.tar.gz, AVAR, 2011; MetaCPAN )
Geo-Routing/lib/Geo/Routing/Driver/OSRM.pm ( view source; MetaCPAN )
se '::Util::TypeConstraints';
use Text::Trim;
use Geo::Routing::Driver::OSRM::Route;
use JSON::XS qw(decode_json);

with qw(Geo::Routing::Role::Driver);

has osrm_path => (
    is            => 'ro',
 qw(
    json
    xml
);

has query_method => (
    is            => 'ro',
    isa           => 'OSRMQueryMethod',
    default       => 'json',
    documentation => "Should we make XML or JSON request
       };
    } elsif ($method eq 'json') {
        my $json = decode_json($content);

        return if $json->{status} eq '207';

        my $route_summary = $json->{route_summary};
        my ($dis
WebService-Google-Closure ( M/ME/MERIXZON/WebService-Google-Closure-0.10.tar.gz, MERIXZON, 2011; MetaCPAN )
WebService-Google-Closure/lib/WebService/Google/Closure/Response.pm ( view source; MetaCPAN )
vice::Google::Closure::Response;

use Moose;
use MooseX::Types::Moose qw( ArrayRef Str Int );
use JSON;

use WebService::Google::Closure::Types qw( ArrayRefOfWarnings ArrayRefOfErrors Stats );

has fo
sa        => Str,
    trigger    => sub { my $self = shift; die "Bad format - only json" unless $self->format eq 'json' },
);

has content => (
    is         => 'ro',
    isa        => Str,
    trigg
rn 0;
    }
    return 1;
}

sub _set_content {
    my $self = shift;

    my $json = JSON->new();
    my $content = $json->decode( $self->content );
    foreach my $key ( keys %{ $content } ) {
     
Tatsumaki ( C/CH/CHIPS/Tatsumaki-0.101301.tar.gz, CHIPS, 2011; MetaCPAN )
Tatsumaki/lib/Tatsumaki.pm ( view source; MetaCPAN )
 package FeedHandler;
  use parent qw(Tatsumaki::Handler);
  __PACKAGE__->asynchronous(1);

  use JSON;

  sub get {
      my($self, $query) = @_;
      my $client = Tatsumaki::HTTPClient->new;
      
   Tatsumaki::Error::HTTP->throw(500);
      }
      my $json = JSON::decode_json($res->content);
      $self->write("Fetched " . scalar(@{$json->{entries}}) . " entries from API");
      $self->finis
WebService-Google-Closure ( M/ME/MERIXZON/WebService-Google-Closure-0.10.tar.gz, MERIXZON, 2011; MetaCPAN )
WebService-Google-Closure/lib/WebService/Google/Closure.pm ( view source; MetaCPAN )
def,
);

has output_format => (
    is         => 'ro',
    isa        => Str,
    default    => 'json',
    init_arg   => undef,
);

has output_info => (
    is         => 'ro',
    isa        => Arr
Tatsumaki ( C/CH/CHIPS/Tatsumaki-0.101301.tar.gz, CHIPS, 2011; MetaCPAN )
Tatsumaki/lib/Tatsumaki/Handler.pm ( view source; MetaCPAN )
r;
use strict;
use AnyEvent;
use Carp ();
use Encode ();
use Any::Moose;
use MIME::Base64 ();
use JSON;
use Tatsumaki::Error;

has application => (is => 'rw', isa => 'Tatsumaki::Application');
has con
 => (is => 'rw', isa => 'Str', lazy => 1, lazy_build => 1);
has json     => (is => 'rw', isa => 'JSON', lazy => 1, default => sub { JSON->new->utf8 });
has binary   => (is => 'rw', isa => 'Bool');

ha
 $_[0]) {
        if ($self->mxhr) {
            my $json = $self->json->encode($_[0]);
            return "Content-Type: application/json\n\n$json\n--" . $self->mxhr_boundary. "\n";
        } else {
WebService-Google-Closure ( M/ME/MERIXZON/WebService-Google-Closure-0.10.tar.gz, MERIXZON, 2011; MetaCPAN )
WebService-Google-Closure/lib/WebService/Google/Closure/Types.pm ( view source; MetaCPAN )
use MooseX::Types::Moose qw( ArrayRef HashRef Str Int Undef );
use Perl6::Junction qw( any );
use JSON;

use WebService::Google::Closure::Type::Warning;
use WebService::Google::Closure::Type::Error;
u
Geo-Routing ( A/AV/AVAR/Geo-Routing-0.11.tar.gz, AVAR, 2011; MetaCPAN )
Geo-Routing/lib/Geo/Routing/Driver/OSRM/Query.pm ( view source; MetaCPAN )
h 'Geo::Routing::Role::Query';

sub query_string {
    my ($self, $method) = @_;
    $method ||= "json";

    my @atoms = qw(from_latitude from_longitude to_latitude to_longitude);

    my $query_stri
WebService-CloudFlare-Host ( S/SY/SYMKAT/WebService-CloudFlare-Host-000100.tar.gz, SYMKAT, 2011; MetaCPAN )
WebService-CloudFlare-Host/lib/WebService/CloudFlare/Host/Response/ZoneDelete.pm ( view source; MetaCPAN )
 is => 'rw', isa => 'Str', required => 0 );

# JSON boolean values, coerced into 1|0 (Not Required)
has [qw/ zone_deleted /]
    => ( is => 'ro', isa => 'json_bool', coerce => 1, required => 0 );

1;
Games-Construder ( E/EL/ELMEX/Games-Construder-0.95.tar.gz, ELMEX, 2011; MetaCPAN )
Games-Construder/lib/Games/Construder/Server.pm ( view source; MetaCPAN )
struder::Server;
use common::sense;
use AnyEvent;
use AnyEvent::Handle;
use AnyEvent::Socket;
use JSON;

use Games::Construder::Protocol;
use Games::Construder::Server::Resources;
use Games::Construde
Games-Construder ( E/EL/ELMEX/Games-Construder-0.95.tar.gz, ELMEX, 2011; MetaCPAN )
Games-Construder/lib/Games/Construder/Protocol.pm ( view source; MetaCPAN )
see <http://www.gnu.org/licenses/>.
#
package Games::Construder::Protocol;
use common::sense;
use JSON;

require Exporter;
use POSIX qw/floor/;
our @ISA = qw/Exporter/;
our @EXPORT = qw/
   packet2dat


Games::Construder::Protocol - Client-Server Protocol Utility Functions

=over 4

=cut

my $JS = JSON->new;

sub packet2data {
   my ($header, $body) = @_;
   my $hdr_data = $JS->encode ($header);
  
Games-Construder ( E/EL/ELMEX/Games-Construder-0.95.tar.gz, ELMEX, 2011; MetaCPAN )
Games-Construder/lib/Games/Construder/Client.pm ( view source; MetaCPAN )
ave_config;

   } elsif ($hdr->{cmd} eq 'transfer_end') {
      $self->{front}->msg;
      #print JSON->new->pretty->encode ($self->{front}->{res}->{resource});
      $self->{res}->post_proc;
      ct

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