Group
Extension

Matches 35358

Dist-Zilla-Plugin-CheckVersionIncrement ( R/RT/RTHOMPSON/Dist-Zilla-Plugin-CheckVersionIncrement-0.121750.tar.gz, RTHOMPSON, 2012; MetaCPAN )
Dist-Zilla-Plugin-CheckVersionIncrement/lib/Dist/Zilla/Plugin/CheckVersionIncrement.pm ( view source; MetaCPAN )
:Zilla::Role::BeforeRelease';
use Encode qw(encode_utf8);
use LWP::UserAgent;
use version ();
use JSON::PP;


# Lots of this is cargo-culted from DZP::CheckPrereqsIndexed
sub before_release {
    my (
->get("http://cpanidx.org/cpanidx/json/mod/$pkg");
    if ($res->is_success) {
        my $yaml_octets = encode_utf8($res->decoded_content);
        my $payload = JSON::PP->new->decode($yaml_octets);
Task-DataFlow ( R/RU/RUSSOZ/Task-DataFlow-0.008.tar.gz, RUSSOZ, 2012; MetaCPAN )
Task-DataFlow/lib/Task/DataFlow.pm ( view source; MetaCPAN )
verters

=head3 L<DataFlow::Proc::MessagePack> 1.112100

No tests yet!!

=head3 L<DataFlow::Proc::JSON> 1.112100

No tests yet!!

=head3 L<DataFlow::Proc::YAML> 1.112100

No tests yet!!

=head3 L<Data
Neo4j ( N/NU/NUBA/Neo4j-0.01_01.tar.gz, NUBA, 2012; MetaCPAN )
Neo4j/lib/Neo4j/Node.pm ( view source; MetaCPAN )
use 5.10.0;
use Moose;
use Neo4j::Relationship;

use Neo4j::REST::Client;

use Data::Printer;
use JSON;

has 'id' => (
    isa      => 'Num',
    required => 0,
    is       => 'rw',
);

has 'client' 

    for ( $self->client->status ) {
        when ('200') {
            $self->_endpoints( decode_json( $self->client->content ) );
            $self->_self_endpoint( $self->_endpoints->{self} );
    
t('node'),
        encode_json( $self->data ) );

    for ( $self->client->status ) {
        when ('201') {

            # all good
            $self->_endpoints( decode_json( $self->client->content 
Google-Search ( R/RO/ROKR/Google-Search-0.028.tar.gz, ROKR, 2012; MetaCPAN )
Google-Search/lib/Google/Search.pm ( view source; MetaCPAN )
esult;
use Google::Search::Error;
use LWP::UserAgent;
require HTTP::Request::Common;
use JSON;

my $json = JSON->new;

BEGIN {
    use vars qw/ $Base %Service2URI /;
    $Base = 'http://ajax.googleapi
 "Malformed content: $content" unless $content =~ s/^.*?\(\[(.*)\]\)$/[$1]/g;
        my $data = $json->decode( $content );
        croak "Malformed content: $content" unless ref $data eq 'ARRAY' && $
Neo4j ( N/NU/NUBA/Neo4j-0.01_01.tar.gz, NUBA, 2012; MetaCPAN )
Neo4j/lib/Neo4j/REST/Client.pm ( view source; MetaCPAN )
package Neo4j::REST::Client;

use 5.10.0;
use Moose;
use Data::Printer;

use REST::Client;
use JSON;
use Try::Tiny;

has 'root_URL' => (
    required => 1,
    isa      => 'Str',
    is       => 'rw',
:Client->new;
    $client->addHeader( 'Accept',       'application/json' );
    $client->addHeader( 'Content-Type', 'application/json' );
    return $client;
}

has 'root_endpoints' => (
    isa     =
);

  $self->GET($self->root_URL);
  if($self->status eq '200') {
    my $root_endpoints = decode_json($self->content);
    # FIX for missing relationships endpoint on the API
    $root_endpoints->{re
Neo4j ( N/NU/NUBA/Neo4j-0.01_01.tar.gz, NUBA, 2012; MetaCPAN )
Neo4j/lib/Neo4j/Relationship.pm ( view source; MetaCPAN )
ict;
use warnings;

use Moose;

use Neo4j::REST::Client;
use Neo4j::Node;

use Data::Printer;
use JSON;

has 'id' => (
    isa      => 'Num',
    required => 0,
    is       => 'rw',
);

has 'client' 

    for ( $self->client->status ) {
        when ('200') {
            $self->_endpoints( decode_json( $self->client->content ) );
            $self->_self_endpoint( $self->_endpoints->{self} );

   
;

    $self->client->POST($url, encode_json( $payload) );

    for ( $self->client->status ) {
        when ('201') {
            $self->_endpoints( decode_json( $self->client->content ) );
         
Log-Message-Structured ( D/DA/DAMS/Log-Message-Structured-0.011.tar.gz, DAMS, 2012; MetaCPAN )
Log-Message-Structured/lib/Log/Message/Structured.pm ( view source; MetaCPAN )
     Log::Message::Structured::Component::Hostname
        Log::Message::Structured::Stringify::AsJSON
    /;

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

    ... elsewhere ...

    use aliased 'My
either pass around in your application, log in a traditional
manor as a log line, or serialize to JSON or YAML for transmission over the
network.

=head1 COMPONENTS

The consuming class can include co
m L<Log::Message::Structured::Stringify::Sprintf>

=item L<Log::Message::Structured::Stringify::AsJSON>

=item L<Log::Message::Structured::Stringify::AsYAML>

=back

=head1 AUTHOR AND COPYRIGHT

Tomas
WebService-Simplenote ( I/IO/IOANR/WebService-Simplenote-0.2.1.tar.gz, IOANR, 2012; MetaCPAN )
WebService-Simplenote/lib/WebService/Simplenote/Note.pm ( view source; MetaCPAN )
e;
use JSON qw//;
use Log::Any qw//;
use namespace::autoclean;

around BUILDARGS => sub {
    my $orig  = shift;
    my $class = shift;

    if (@_ == 1 && !ref $_[0]) {
        my $note = JSON->new->
, JSON->backend);
    my $json = JSON->new;
    $json->allow_blessed;
    $json->convert_blessed;
    my $serialised_note = $json->utf8->encode($self);

    return $serialised_note;
}

method TO_JSON 
Log-Message-Structured ( D/DA/DAMS/Log-Message-Structured-0.011.tar.gz, DAMS, 2012; MetaCPAN )
Log-Message-Structured/lib/Log/Message/Structured/Stringify/AsJSON.pm ( view source; MetaCPAN )
package Log::Message::Structured::Stringify::AsJSON;
use Moose::Role;
use namespace::autoclean;

use JSON::Any;
use utf8 ();

requires 'as_hash';

around 'as_string' => sub {
    my $orig = shift;
   
as_hash;
    my $json = JSON::Any->objToJson( $hashref );
    utf8::decode($json) if !utf8::is_utf8($json) and utf8::valid($json); # if it's valid utf8 mark it as such
    return $json;
};


1;

__END
__

=pod

=head1 NAME

Log::Message::Structured::Stringify::AsJSON - JSON log lines

=head1 SYNOPSIS

    package MyLogEvent;
    use Moose;
    use namespace::autoclean;

    with qw/
        Log::Me
Neo4j ( N/NU/NUBA/Neo4j-0.01_01.tar.gz, NUBA, 2012; MetaCPAN )
Neo4j/lib/Neo4j/Index.pm ( view source; MetaCPAN )
ge Neo4j::Index;
use strict;
use warnings;

use 5.10.0;
use Moose;

use Neo4j::REST::Client;

use JSON;


has 'client' => (
    required => 1,
    isa      => 'Neo4j::REST::Client',
    is       => 'r
MARC-Record-Generic ( C/CF/CFOUTS/MARC-Record-Generic-0.001.tar.gz, CFOUTS, 2012; MetaCPAN )
MARC-Record-Generic/lib/MARC/Record/Generic.pm ( view source; MetaCPAN )
number of purposes, but the
principle intention is to make MARC data amenable to serializing into
JSON, YAML, etc. Field and subfield order is preserved. Multiple
instances of either are also allowed.
ed by Frederic Demians' MARC::Moose::Formater::JSON.

Format inspired by http://dilettantes.code4lib.org/blog/2010/09/a-proposal-to-serialize-marc-in-json

=head1 AUTHOR

Clay Fouts <cfouts@khephera.n
Apache-ExtDirect ( T/TO/TOKAREV/Apache-ExtDirect-0.90.tar.gz, TOKAREV, 2012; MetaCPAN )
Apache-ExtDirect/lib/Apache/ExtDirect/EventProvider.pm ( view source; MetaCPAN )
y $length = do { no warnings; use bytes; length $http_body; };

    $r->content_type('application/json');
    $r->headers_out->{'Content-Length'} = $length;

    $r->print($http_body);

    return Apa
Apache-ExtDirect ( T/TO/TOKAREV/Apache-ExtDirect-0.90.tar.gz, TOKAREV, 2012; MetaCPAN )
Apache-ExtDirect/lib/Apache/ExtDirect.pm ( view source; MetaCPAN )
CIES

Apache::ExtDirect is dependent on the following modules:
L<mod_perl2>, L<RPC::ExtDirect>, L<JSON>, L<Attribute::Handlers>.

=head1 SEE ALSO

For more information on core functionality see L<RPC:
Dancer-Session-DBI ( J/JA/JAITKEN/Dancer-Session-DBI-1.0.0.tar.gz, JAITKEN, 2012; MetaCPAN )
Dancer-Session-DBI/lib/Dancer/Session/DBI.pm ( view source; MetaCPAN )
>. The default serialization method is L<JSON>,
though one can specify any serialization format you want. L<YAML> and L<Storable> are
viable alternatives.

JSON was chosen as the default serialization
on ephemeral - Store it compactly
    return to_json({%$self}, { pretty => 0 });
}


# Default Deserialize method
sub _deserialize {
    my ($self, $json) = @_;
    my $settings = setting('session_opt
efined $settings->{deserializer}) {
        return $settings->{deserializer}->($json);
    }

    return from_json($json);
}



=head1 SEE ALSO

L<Dancer>, L<Dancer::Session>, L<Plack::Session::Store:
Biblio-Thesaurus ( A/AM/AMBS/Biblio/Biblio-Thesaurus-0.43.tar.gz, AMBS, 2012; MetaCPAN )
Biblio-Thesaurus/lib/Biblio/Thesaurus.pm ( view source; MetaCPAN )
;
}

##
#
#
sub toJson {
    my ($self, $rel) = @_;
    $rel //= "NT";
    $rel = [$rel] unless ref($rel);
    my $top = $self->topName;
    $self->_toJson($top, $rel);
}

sub _toJson {
    my ($self,
json = "{ \"data\": \"$term\", \"attr\":{id:\"$term\"}";
    if (keys %$h) {
        $json .= ", \"children\": [";
        $json .= join(", ", map { $self->_toJson($_, $rel) } keys %$h);
        $json
 .= "]"
    }
    $json .= "}";
}

###
#
#
sub _tc_aux {
  my ($self,$term,$vis,@relat) = @_;
  $term = $self->getdefinition($term);
  my %r = ( $term => 1 );
  for ($self->terms($term,@relat)) {
    
Dancer-Plugin-ExtDirect ( A/AA/AAR/Dancer-Plugin-ExtDirect-1.03.tar.gz, AAR, 2012; MetaCPAN )
Dancer-Plugin-ExtDirect/lib/Dancer/Plugin/ExtDirect.pm ( view source; MetaCPAN )
Direct plugin for Dancer
use strict;
use warnings;

use Dancer ':syntax';
use Dancer::Plugin;
use JSON ();

# The best Ext Direct docs out there are provided by the Django implementation:
# https://gi
Handler => JSON::true) : (),
                };
            }
        }
        
        content_type 'text/javascript';
        sprintf "Ext.Direct.addProvider(%s);\n",
            to_json {
        
Type|Upload)$/, keys %{&params} } ],
            };
        } else {
            $requests = from_json(request->body)
                or return status 400;
            
            # wrap the request 
DHTMLX-Connector ( E/ED/EDUARDOW/DHTMLX-Connector-0.002.tar.gz, EDUARDOW, 2012; MetaCPAN )
DHTMLX-Connector/lib/DHTMLX/Connector.pm ( view source; MetaCPAN )
ing" };
    $columns{last_name} = {operator => "ILIKE", type => "string" };

    
    $connector->jsonForGrid( $table, $primary_key, \%columns );
    
    $connector->xmlForGrid( $table, $primary_key,
ACT

=cut

# ABSTRACT: DHTMLX Perl connector
    
    use strict;
    use warnings 'all';
    use JSON;
    use XML::Mini::Document;
    use Locale::Currency::Format;
    
    use vars qw (
	    $VERS
rency = $self->{currency};
	}

        bless $self, $class;
        return $self;
    }
 
    sub jsonForGrid
    {
        my($self, $table, $primary_key, $columns, $nRegPag, $isSmartRendering, $iden
DHTMLX-Core ( E/ED/EDUARDOW/DHTMLX-Core-0.004.tar.gz, EDUARDOW, 2012; MetaCPAN )
DHTMLX-Core/lib/DHTMLX/Core.pm ( view source; MetaCPAN )
ABSTRACT: Basics tasks on DHTMLX Perl module

    use strict;
	use warnings 'all';
	use DBI;
	use JSON;
	use HTML::Entities;

	use POSIX qw(locale_h strtod setlocale LC_MONETARY LC_CTYPE);
	
	# config

    # prints
    
     	{
	    "response":"foo is undefined",
	    "status":"error"
	}

Prints a JSON string with errors details and exit the application;


=cut
	sub error
	{
	    my($self, $strErro
 %resposta = (
		status  => "error",
		response =>  $strErro,
	    );
	    my $json = \%resposta;
	    print to_json($json, { utf8  => 1 });
	    exit;
	}
	
=head2 Post
    
    my $value_from_post = 
Bio-PhyloTastic ( R/RV/RVOSA/Bio-PhyloTastic-0.2.tar.gz, RVOSA, 2012; MetaCPAN )
Bio-PhyloTastic/lib/Bio/PhyloTastic/TNRS.pm ( view source; MetaCPAN )
package Bio::PhyloTastic::TNRS;
use strict;
use warnings;
use JSON;
use URI::Escape;
use Data::Dumper;
use LWP::UserAgent;
use Bio::Phylo::IO 'parse';
use Bio::Phylo::Util::CONSTANT ':objecttypes';
us
s is a redirect
	my $obj = decode_json($result);
	
	# start polling
	while(1) {
		sleep $wait;
		my $result = _fetch_url($obj->{'uri'},'get');
		my $obj = decode_json($result);
		if ( $obj->{'names'} 
Google-Directions ( R/RC/RCL/Google-Directions-0.09.tar.gz, RCL, 2012; MetaCPAN )
Google-Directions/lib/Google/Directions/Client.pm ( view source; MetaCPAN )
est::SHA qw/sha256_hex/;
use Encode qw/encode_utf8/;
use Google::Directions::Response;
use JSON qw/decode_json/;
use LWP::UserAgent;
use Moose;
use MooseX::Params::Validate;
use MooseX::WithCache;
use
e_url> Default: C<https://maps.googleapis.com>

=item I<api_path> Default: C</maps/api/directions/json>

=item I<limit_path_length> limit is documented at 2048, but errors occur at 2047.. Default: 204


has 'api_path'              => ( is => 'ro', isa => 'Str',
    default => '/maps/api/directions/json' );

has 'limit_path_length'      => ( is => 'ro', isa => 'Int', default => 2046 );

# Create a L

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