Group
Extension

Matches 35358

Geo-Coder-PlaceFinder ( F/FR/FRIFFIN/Geo-Coder-PlaceFinder-0.1.tar.gz, FRIFFIN, 2014; MetaCPAN )
Geo-Coder-PlaceFinder/PlaceFinder.pm ( view source; MetaCPAN )
Geo::Coder::PlaceFinder;

our $VERSION = '0.1';

use strict;

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

$Net::OAuth::PROTOCOL_VERSION = Net::OAuth::PROTOC
s_error ) {
		die "PlaceFinder API returned error: " . $res->status_line;
	};

	my $data = decode_json( $res->content );

	my $response = $data->{bossresponse}->{placefinder}->{results}->[0];

	my $re
Opsview-REST ( M/MR/MRUIZ/Opsview-REST-0.013.tar.gz, MRUIZ, 2014; MetaCPAN )
Opsview-REST/lib/Opsview/REST/APICaller.pm ( view source; MetaCPAN )

  $Opsview::REST::APICaller::VERSION = '0.013';
}

use Moo::Role;

use Carp;

use Try::Tiny;
use JSON ();
use HTTP::Tiny 0.014;

has ua => (
    is      => 'ro',
    default => sub { HTTP::Tiny->new(
    'Accept'        => 'application/json',
        'Content-type'  => 'application/json',
    }; },
);

has json => (
    is      => 'ro',
    default => sub { JSON->new },
);

sub get {
    my $self 
 => $self->headers,
    });
    croak $self->_errmsg($r) unless $r->{success};

    return $self->json->decode($r->{content});
}

sub delete {
    my $self = shift;
    my $r = $self->ua->delete($self
KiokuDB ( D/DO/DOY/KiokuDB-0.57.tar.gz, DOY, 2014; MetaCPAN )
KiokuDB/lib/KiokuDB/TypeMap/Default/Canonical.pm ( view source; MetaCPAN )
ad1 VERSION

version 0.57

=head1 DESCRIPTION

This typemap is suitable for serialization using L<JSON>. It stringifies or
otherwise converts data structures into primitive representations.

=head1 AU
KiokuDB ( D/DO/DOY/KiokuDB-0.57.tar.gz, DOY, 2014; MetaCPAN )
KiokuDB/lib/KiokuDB/TypeMap/Default.pm ( view source; MetaCPAN )
DESCRIPTION

The default typemap is actually defined per backend, in
L<KiokuDB::TypeMap::Default::JSON> and L<KiokuDB::TypeMap::Default::Storable>.
The list of classes handled by both is the same, but
KiokuDB ( D/DO/DOY/KiokuDB-0.57.tar.gz, DOY, 2014; MetaCPAN )
KiokuDB/lib/KiokuDB/Backend/Role/BinarySafe.pm ( view source; MetaCPAN )
ple
L<KiokuDB::Backend::Serialize::Storable> is binary safe, while
L<KiokuDB::Backend::Serialize::JSON> is not).

=head1 AUTHOR

Yuval Kogman <nothingmuch@woobling.org>

=head1 COPYRIGHT AND LICENSE

Mojolicious-Plugin-DirectoryQueue ( F/FU/FUKAI/Mojolicious-Plugin-DirectoryQueue-0.01.tar.gz, FUKAI, 2014; MetaCPAN )
Mojolicious-Plugin-DirectoryQueue/lib/Mojolicious/Plugin/DirectoryQueue.pm ( view source; MetaCPAN )
ojolicious::Plugin::DirectoryQueue;

use Mojo::Base 'Mojolicious::Plugin';
use Mojo::JSON qw(decode_json encode_json);
use Directory::Queue;
use POSIX qw(chown);

our $VERSION = '0.01';


sub register
elper(
        enqueue => sub {
            my ($self, $args) = @_;
            $dirq->add(encode_json($args));
        },
    );

    $app->helper(
        dequeue => sub {
            for (my $name 
  my $data = $dirq->get($name);
               $dirq->remove($name);
               return decode_json($data) if $data;
            }
            return;
        },
    );

    $app->helper(
        s
KiokuDB ( D/DO/DOY/KiokuDB-0.57.tar.gz, DOY, 2014; MetaCPAN )
KiokuDB/lib/KiokuDB/Backend/Serialize/JSPON/Collapser.pm ( view source; MetaCPAN )
ry data to JSPON compliant structures

use KiokuDB::Entry;
use KiokuDB::Reference;
use JSON::XS 2.231 ();
use JSON 2.12;

use namespace::clean -except => 'meta';

with qw(KiokuDB::Backend::Serialize::

                ( $data->root ? ( $self->root_field => JSON::true() ) : () ),
                ( $data->deleted ? ( $self->deleted_field => JSON::true() ) : () ),
                ( $data->has_tied ? (
the entry recursively, returning a JSPON compliant data structure
suitable for serialization as a JSON string.

=back

=head1 AUTHOR

Yuval Kogman <nothingmuch@woobling.org>

=head1 COPYRIGHT AND LICE
KiokuDB ( D/DO/DOY/KiokuDB-0.57.tar.gz, DOY, 2014; MetaCPAN )
KiokuDB/lib/KiokuDB/Backend/Serialize/JSPON.pm ( view source; MetaCPAN )
apser;

use namespace::clean -except => 'meta';

with qw(
    KiokuDB::Backend::TypeMap::Default::JSON
    KiokuDB::Backend::Serialize::JSPON::Converter
);

has expander => (
    isa => "KiokuDB::Back
<KiokuDB::Entry> and
L<KiokuDB::Reference> objects.

For serialization to JSON strings see L<KiokuDB::Backend::Serialize::JSON>.

=head1 METHODS

=over 4

=item expand_jspon

See L<KiokuDB::Backend::S
Business-YQL ( A/AA/AANARI/Business-YQL-0.0004.tar.gz, AANARI, 2014; MetaCPAN )
Business-YQL/lib/Business/YQL.pm ( view source; MetaCPAN )
TP::Request::Common qw(GET POST);
use URI;
use URI::QueryParam;
use LWP::UserAgent;
use JSON qw(to_json from_json);
use Carp qw(croak);
use Log::Any qw($log);
use Try::Tiny;

has scheme  => (is => 'ro
(
        q           => $query,
        format      => 'json',
        env         => 'store://datatables.org/alltableswithkeys',
        jsonCompat  => 'new',
    );

    my $uri = URI->new($self->u
  $res = $self->ua->request($req);
    }
    return from_json $res->content
        if $res->code =~ /^4/x;
    return $res->content ? from_json($res->content)->{query}{results} : 1;
}

sub _log_conte
Catmandu-Store-Solr ( N/NI/NICS/Catmandu-Store-Solr-0.0204.tar.gz, NICS, 2014; MetaCPAN )
Catmandu-Store-Solr/lib/Catmandu/Store/Solr.pm ( view source; MetaCPAN )
b _build_solr {
    WebService::Solr->new($_[0]->url, {autocommit => 0, default_params => {wt => 'json'}});
}

=head1 SUPPORT

Solr schemas need to support '_id' and '_bag' record fields to be able to
Form-Toolkit ( J/JE/JETEVE/Form-Toolkit-0.008.tar.gz, JETEVE, 2014; MetaCPAN )
Form-Toolkit/lib/Form/Toolkit/Form.pm ( view source; MetaCPAN )
use Form::Toolkit::Clerk::Hash;

use Form::Toolkit::Field;
use Form::Toolkit::Field::String;

use JSON;
use MIME::Base64;
use Scalar::Util;


with qw(MooseX::Clone);

=head1 NAME

Form::Toolkit::Form 
 for Form implementation

=cut

__PACKAGE__->meta->id_prefix('form_');

has 'jsoner' => ( isa => 'JSON' , is => 'ro', required => 1, lazy_build => 1);

has 'fields' => ( isa => 'ArrayRef[Form::Toolkit
lds

=cut

sub BUILD{
  my ($self) = @_;
  $self->build_fields();
}

sub _build_jsoner{
  my ($self) = @_;
  return JSON->new->ascii(1)->pretty(0);
}


=head2 fast_clone

Returns fast clone of this fo
KiokuDB ( D/DO/DOY/KiokuDB-0.57.tar.gz, DOY, 2014; MetaCPAN )
KiokuDB/lib/KiokuDB/Test/Fixture/TypeMap/Default.pm ( view source; MetaCPAN )
 possible with JSON atm", 1 if (
                ( $self->directory->backend->can("serializer")
                and $self->directory->backend->serializer->isa('KiokuDB::Serializer::JSON') )
          
      or $self->directory->backend->does("KiokuDB::Backend::Serialize::JSON")
                or $self->directory->backend->does("KiokuDB::Backend::Serialize::JSPON")
            );

            isa_o
Plack-Middleware-JSONParser ( Y/YO/YOSUKEF/Plack-Middleware-JSONParser-0.02.tar.gz, YOSUKEF, 2014; MetaCPAN )
Plack-Middleware-JSONParser/lib/Plack/Middleware/JSONParser.pm ( view source; MetaCPAN )
package Plack::Middleware::JSONParser;
use strict;
use warnings;
use JSON;
use Hash::MultiValue;
use Plack::Request;

our $VERSION = "0.02";

use parent 'Plack::Middleware';

sub call {
    my ($self,
m{\Aapplication/json}o) {
        my $req = Plack::Request->new( $env );
        my $raw_body = $req->raw_body();
        return $self->app->($env) unless ($raw_body);
        my $json;
        {
    
     local $@;
          $json = eval { decode_json($raw_body) };
          if ($@) {
            die $@ if $self->{die_when_failed};
            $env->{'plack.middleware.jsonparser.error'} = $@;
    
File-OSS-Scan ( H/HA/HARRYWANG/File-OSS-Scan-0.04.tar.gz, HARRYWANG, 2014; MetaCPAN )
File-OSS-Scan/lib/File/OSS/Scan.pm ( view source; MetaCPAN )
et_json = scan_result('json');

Get all the detected matches on files within the project directory. Parameter $format can be one of
the I<txt> - plain text, I<html> - formatted HTML tables or I<json> 
nning.

=head2 C<exclude_extension>

    exclude_extension: png jpg gif pdf doc docx html htm xml json xls

This is a global setting, so should be defined under the section C<GLOBAL> or in the very be
KiokuDB ( D/DO/DOY/KiokuDB-0.57.tar.gz, DOY, 2014; MetaCPAN )
KiokuDB/lib/POD2/JA/KiokuDB/Tutorial.pod ( view source; MetaCPAN )
ckend is
L<KiokuDB::Serializer::JSON>, we examine the data.

=end original

DBIバックエンドのデフォルトのシリアライザーはL<KiokuDB::Serializer::JSON>ですので、
データを
ll notice the C<spouse> field has a JSON object with a C<$ref> field inside
it holding the UUID of the target object.

=end original

C<spouse>フィールドがJSONオブジェクトということ
AnyEvent-LeapMotion ( A/AK/AKIYM/AnyEvent-LeapMotion-0.01.tar.gz, AKIYM, 2014; MetaCPAN )
AnyEvent-LeapMotion/lib/AnyEvent/LeapMotion.pm ( view source; MetaCPAN )
otion;
use 5.008005;
use strict;
use warnings;
use AnyEvent::Handle;
use AnyEvent::Socket ();
use JSON ();
use Protocol::WebSocket;
use Protocol::WebSocket::Frame;
use Protocol::WebSocket::Handshake::
         if (my $message = $self->{frame}->next_bytes) {
                        my $data = JSON::decode_json($message);
                        if (exists $data->{id} && exists $data->{timestamp}) {
         });
        });
    };
}

sub send {
    my ($self, $data) = @_;
    my $message = JSON::encode_json($data);
    my $frame = Protocol::WebSocket::Frame->new($message);
    $self->{handle}->pu
Bio-BioVeL ( R/RV/RVOSA/Bio-BioVeL-0.1.tar.gz, RVOSA, 2014; MetaCPAN )
Bio-BioVeL/lib/Bio/BioVeL/Service/NeXMLMerger.pm ( view source; MetaCPAN )
l or as URL
 	'-dataformat'    => 'nexus',
 	'-treeformat'    => 'newick',
 	'-metaformat'    => 'json',
 	'-charsetformat' => 'nexus',
 );

 my $merger = Bio::BioVeL::Service::NeXMLMerger->new;
 my $
RDF-DOAP-Lite ( T/TO/TOBYINK/RDF-DOAP-Lite-0.002.tar.gz, TOBYINK, 2014; MetaCPAN )
RDF-DOAP-Lite/lib/RDF/DOAP/Lite.pm ( view source; MetaCPAN )
   
   my $changes = CPAN::Changes->load('Changes');
   my $meta    = CPAN::Meta->load_file('META.json');
   my $doap    = RDF::DOAP::Lite->new(meta => $meta, changes => $changes);
   
   $doap->doap_
APNS-Agent ( S/SO/SONGMU/APNS-Agent-0.06.tar.gz, SONGMU, 2014; MetaCPAN )
APNS-Agent/lib/APNS/Agent.pm ( view source; MetaCPAN )
ngs;

our $VERSION = "0.06";

use AnyEvent::APNS;
use Cache::LRU;
use Encode qw/decode_utf8/;
use JSON::XS;
use Log::Minimal;
use Plack::Request;
use Router::Boom::Method;

use Class::Accessor::Lite::
   if (my $payload_json = $req->param('payload') ) {
        state $json_driver = JSON::XS->new->utf8;
        local $@;
        $payload = eval { $json_driver->decode($payload_json) };
        return
 scalar( @{ $self->_queue } ),
    };
    my $body = encode_json($result);

    return [200, [
        'Content-Type'   => 'application/json; charset=utf-8',
        'Content-Length' => length($body),
Mojolicious-Plugin-Airbrake ( J/JO/JONTAYLOR/Mojolicious-Plugin-Airbrake-0.01.tar.gz, JONTAYLOR, 2014; MetaCPAN )
Mojolicious-Plugin-Airbrake/lib/Mojolicious/Plugin/Airbrake.pm ( view source; MetaCPAN )
($self->url => json => $self->_json_content($ex, $app, $c), $call_back );



}

sub _json_content {
  my $self = shift;
  my $ex = shift;
  my $app = shift;
  my $c = shift;

  my $json = {
    notifi
 $VERSION,
      url => 'https://github.com/jontaylor/Mojolicious-Plugin-Airbrake'
    }
  };

  $json->{errors} = [{
    type => ref $ex,
    message => $ex->message,
    backtrace => [],
  }];

  fo
line, $subroutine) = @$frame;
    push @{$json->{errors}->[0]->{backtrace}}, {
      file => $file, line => $line, function => $subroutine
    };
  }

  $json->{context} = {
    environment => $app->m

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