Group
Extension

Matches 35359

Dezi-Client ( K/KA/KARMAN/Dezi-Client-0.003004.tar.gz, KARMAN, 2015; MetaCPAN )
Dezi-Client/lib/Dezi/Response.pm ( view source; MetaCPAN )
;
use Moo;
use Types::Standard qw( Str Num Int ArrayRef HashRef InstanceOf Maybe );
use Carp;
use JSON;
use Dezi::Doc;
use namespace::autoclean;

our $VERSION = '0.003004';

has 'http_response' => ( i
sponse> )

Returns a new response. I<http_response> should be a HTTP::Response
object from a Dezi JSON response.

=head2 BUILDARGS

Allows for single argument I<http_response> instead of named pair.

 {
    my $self = shift;
    my $json = from_json( $self->http_response->decoded_content );

    # inflate json into self, except results
    for my $attr ( keys %$json ) {
        next if $attr eq 'r
AI-MicroStructure ( S/SA/SANTEX/AI-MicroStructure-0.20.tar.gz, SANTEX, 2015; MetaCPAN )
AI-MicroStructure/bin/from-folder.pl ( view source; MetaCPAN )
ame;
        }elsif (/\.txt$/) {
          $files->{latex}->{$name}=$rel_name;
        }elsif (/\.json$/) {
          $files->{text}->{$name}=$rel_name;
        }
        
  }


find(\&translate, "$TO
GV);
    $c->retrieveIndex($PWD."/t/docs"); #"/home/santex/data-hub/data-hub" structures=0 text=1 json=1



   my $style = {};
      $style->{explicit}  = 1;
ok($c->simpleMixedSearch($style,$_)) && ok
MojoX-Plugin-PHP ( M/MO/MOB/MojoX-Plugin-PHP-0.05.tar.gz, MOB, 2015; MetaCPAN )
MojoX-Plugin-PHP/lib/MojoX/Plugin/PHP.pm ( view source; MetaCPAN )
ader,
the value can be a JSON-encoded payload which can be processed
in Perl. Perl can return the results of the processing through
a global PHP variable (again, possibly JSON encoded). The
C<t/10-hea
d>  where I<payload> is the JSON-encoding
of a hash that defines C<n>, the number to operate on, and
C<result>, the name of the PHP variable to publish the results to.

JSON-encoding the header value 
ines. For complex results, it is also
convenient to assign a JSON-encoded value to a single PHP global
variable.

    ...
    use Mojo::JSON;
    ...
    app->plugin('MojoX::Plugin::PHP',
        { ph
App-Magpie ( J/JQ/JQUELIN/App-Magpie-2.010.tar.gz, JQUELIN, 2015; MetaCPAN )
App-Magpie/lib/App/Magpie/Action/FixSpec.pm ( view source; MetaCPAN )
 $distdir = path( glob "BUILD/*" );
    my $metafile;
    foreach my $meta ( "MYMETA.json", "MYMETA.yml", "META.json", "META.yml" ) {
        next unless -e $distdir->child( $meta );
        $metafile
p {
            ( /^[A-Z]+$/ && ! /^MANIFEST/ ) ||
            m{^(Change(s|log)|MYMETA.yml|META.(json|yml)|e[gx]|(ex|s)amples?|demos?)$}i
        }
        map  { $_->basename }
        $distdir->chi
Flower ( S/SA/SANTEX/Flower-0.10.tar.gz, SANTEX, 2015; MetaCPAN )
Flower/lib/Flower/Chronos/Application/Firefox.pm ( view source; MetaCPAN )
Firefox;

use strict;
use warnings;

use base 'Flower::Chronos::Application::Base';

use URI;
use JSON ();

sub run {
    my $self = shift;
    my ($info) = @_;

    return
         unless $info->{rol
1;
}

sub _find_current_url {
    my $self = shift;

    my $json = $self->_parse_current_session;

    my @tabs;
    foreach my $w (@{$json->{"windows"}}) {
        foreach my $t (@{$w->{"tabs"}}) {
urrent_session {
    my $self = shift;

    my $session = $self->_slurp_session;
    return JSON::decode_json($session);
}

sub _slurp_session {
    my $self = shift;
    my ($session_file) =
      gl
AI-MicroStructure ( S/SA/SANTEX/AI-MicroStructure-0.20.tar.gz, SANTEX, 2015; MetaCPAN )
AI-MicroStructure/bin/getcat.pl ( view source; MetaCPAN )
#!/usr/bin/env perl
use File::Find::Rule;
use strict;
use warnings;
use JSON;
use Cache::Memcached::Fast;
use Try::Tiny;
use Data::Dumper;
use Digest::MD5 qw(md5 md5_hex md5_base64);

our $memd = new 
compress_ratio => 0.9,
 max_failures => 1,
 max_size => 512 * 1024,
});



our $all = {};
our $json = JSON->new->allow_nonref;

sub mytry{
  my $cmd = shift;

try {

  #if($cmd){
  my @ret = split "\n
Elastic-Model ( D/DR/DRTECH/Elastic-Model-0.52.tar.gz, DRTECH, 2015; MetaCPAN )
Elastic-Model/lib/Elastic/Manual/Terminology.pod ( view source; MetaCPAN )
"Document" is like a "row" in a relational DB table.  Elastic::Model
converts your objects into a JSON object (essentially a hashref), which
is the Document that is stored in Elasticsearch.  We use th
n an L</Index>,
has a single L</Type>, an L</ID> and zero or more L<Fields|/Field>.

The original JSON object is stored in the special C<_source> field, which
is returned by default when you retrieve 
Net-Amazon-DynamoDB-Lite ( S/SH/SHIBUYA/Net-Amazon-DynamoDB-Lite-0.05.tar.gz, SHIBUYA, 2015; MetaCPAN )
Net-Amazon-DynamoDB-Lite/lib/Net/Amazon/DynamoDB/Lite.pm ( view source; MetaCPAN )
01;
use strict;
use warnings;

our $VERSION = "0.05";

use Carp;
use Furl;
use HTTP::Request;
use JSON;
use MIME::Base64;
use Moo;
use POSIX qw(setlocale LC_TIME strftime);
use Scalar::Util qw(reftype
ut => (
    is => 'rw',
    default => sub {
        1,
    },
);

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

sub _build_signature {
    my ($self) = @_;
    my $
pi_version . ".$target" );
    $req->header('content-type' => 'application/x-amz-json-1.0');
    $content = $self->json->encode($content);
    $req->content($content);
    $req->header('Content-Length
HTML-Formhandler-Role-ToJSON ( J/JJ/JJNAPIORK/HTML-Formhandler-Role-ToJSON-0.002.tar.gz, JJNAPIORK, 2015; MetaCPAN )
HTML-Formhandler-Role-ToJSON/lib/HTML/Formhandler/Role/ToJSON.pm ( view source; MetaCPAN )
package HTML::Formhandler::Role::ToJSON;

use Moose::Role;

our $VERSION = '0.002';

sub prepare_error_response {  
  return +{
    form_errors => $_[0]->form_errors,
    error_by_field => $_[0]->erro


sub TO_JSON {
  return $_[0]->is_valid ?
    $_[0]->prepare_valid_response :
      $_[0]->prepare_error_response;
}

1;

=head1 NAME

HTML::Formhandler::Role::ToJSON - Adds a basic 'TO_JSON' method 
 HTML::FormHandler::Moose;

    extends 'HTML::FormHandler';
    with 'HTML::Formhandler::Role::ToJSON';

    has_field 'email' => (
      type=>'Email',
      size => 96,
      required => 1);

    h
Treex-View ( M/MI/MICHALS/Treex-View-1.0.0.tar.gz, MICHALS, 2015; MetaCPAN )
Treex-View/lib/Treex/View/Node.pm ( view source; MetaCPAN )
> $treex_root );

=head1 DESCRIPTION

Wrapper around regular L<Treex::Core::Node> to provide L<TO_JSON>
method used for converting Treex structure to simple Perl hashes and
arrays.

=head1 IMPORTED CO
andled data type: $decl";
  }

  return $data;
}

=head2 TO_JSON

Called by L<JSON> package while converting blessed items

=cut

sub TO_JSON {
  my $self = shift;

  my $n    = $self->node;
  my $dat
YATG ( O/OL/OLIVER/YATG-5.20002.tar.gz, OLIVER, 2015; MetaCPAN )
YATG/lib/YATG/Store/RPC.pm ( view source; MetaCPAN )
k> so to change that try:

 rpc_serialized_client_inet:
    data_serializer:
        serializer: 'JSON::Syck'

=head1 SEE ALSO

=over 4

=item L<RPC::Serialized>

=back

=head1 AUTHOR

Oliver Gorwits 
Elastic-Model ( D/DR/DRTECH/Elastic-Model-0.52.tar.gz, DRTECH, 2015; MetaCPAN )
Elastic-Model/lib/Elastic/Manual/QueryDSL.pod ( view source; MetaCPAN )
arch/reference/current/query-dsl.html> which
exposes much of the power of Lucene through a simple JSON interface.
It is tuned for full text search, but is in no way limited just
to that. It also provi
WebService-Amazon-ElasticBeanstalk ( M/MC/MCOX/WebService-Amazon-ElasticBeanstalk-v0.0.8.tar.gz, MCOX, 2015; MetaCPAN )
WebService-Amazon-ElasticBeanstalk/lib/WebService/Amazon/ElasticBeanstalk.pm ( view source; MetaCPAN )
proved)$';
Readonly our $REGEX_FILETYPES  => '^(android|docx|ios|gettext|html|xlsx|javaProperties|json|pptx|xliff|xlsx|xml|yaml)$';
Readonly our $REGEX_FILEURI    => '^\S+$';
Readonly our $REGEX_INT  
Unix-Mgt ( M/MI/MIKO/Unix-Mgt-0.14.tar.gz, MIKO, 2015; MetaCPAN )
Unix-Mgt/lib/Unix/Mgt.pm ( view source; MetaCPAN )
s_in) = @_;
	my (@cmd, $single, @paths, $cmd_str, @su, $json, $tests);
	
	# TESTING
	# println subname(); ##i
	
	# load JSON module
	require JSON::Tiny;
	
	# paths must be sent
	if (! defined $paths_i

		'-c',
		$cmd_str,
	);
	
	# run command, get results
	$json = capturex(@su);
	
	# decode json
	eval {
		$tests = JSON::Tiny::decode_json($json);
	};
	
	# throw error if unable to decode
	if (! $test
ternal {
	my (@paths) = @_;
	my ($rv);
	
	# TESTING
	# println subname(); ##i
	
	# load JSON module
	require JSON::Tiny;
	
	# initialize return hashref
	$rv = {};
	
	# loop through paths
	PATH_LOOP:
	
YATG ( O/OL/OLIVER/YATG-5.20002.tar.gz, OLIVER, 2015; MetaCPAN )
YATG/lib/YATG/Retrieve/RPC.pm ( view source; MetaCPAN )
k> so to change that try:

 rpc_serialized_client_inet:
    data_serializer:
        serializer: 'JSON::Syck'

=head1 SEE ALSO

=over 4

=item L<RPC::Serialized>

=back

=head1 AUTHOR

Oliver Gorwits 
Treex-View ( M/MI/MICHALS/Treex-View-1.0.0.tar.gz, MICHALS, 2015; MetaCPAN )
Treex-View/lib/Treex/View.pm ( view source; MetaCPAN )
t to JSON

use Moose;
use Treex::Core::Document;
use Treex::Core::TredView;
use Treex::Core::TredView::Labels;
use Treex::PML::Factory;
use Treex::View::TreeLayout;
use Treex::View::Node;
use JSON;

u
);
    push @bundles, \%bundle;
  }

  my $json = JSON->new->allow_nonref->allow_blessed->convert_blessed;
  $json = $json->pretty if $pretty;

  return $json->encode(\@bundles);
}

__PACKAGE__->meta-
Elastic-Model ( D/DR/DRTECH/Elastic-Model-0.52.tar.gz, DRTECH, 2015; MetaCPAN )
Elastic-Model/lib/Elastic/Model/Results/Cached.pm ( view source; MetaCPAN )
d_cache_key {
#===================================
    my $self = shift;
    return $self->model->json->encode( $self->search );
}

#===================================
sub BUILD {
#==================
cpan.org/module/CHI#Getting-and-setting>
methods.

=head2 cache_key

The cache_key is a canonical JSON string representation of the full
L<Elastic::Model::Role::Results/search> parameter.

=head1 AUTH
Elastic-Model ( D/DR/DRTECH/Elastic-Model-0.52.tar.gz, DRTECH, 2015; MetaCPAN )
Elastic-Model/lib/Elastic/Model/Role/Model.pm ( view source; MetaCPAN )
leted();
use Scalar::Util qw(blessed refaddr weaken);
use List::MoreUtils qw(uniq);
use JSON();
our $JSON = JSON->new->canonical->utf8;

use namespace::autoclean;
my @wrapped_classes = qw(
    domain 
;
    delete $mapping{type};
    return \%mapping;
}

#===================================
sub json {$JSON}
#===================================

1;

=pod

=encoding UTF-8

=head1 NAME

Elastic::Model
late
an object which does L<Elastic::Model::Role::Doc> into a hash ref
suitable for conversion to JSON.

=head3 deflators

    $deflators = $model->deflators

A hashref which caches all of the deflato
Elastic-Model ( D/DR/DRTECH/Elastic-Model-0.52.tar.gz, DRTECH, 2015; MetaCPAN )
Elastic-Model/lib/Elastic/Manual.pod ( view source; MetaCPAN )
-free and document oriented

Elasticsearch stores your objects as JSON documents. Most Perl objects
can be mapped easily to their JSON equivalent.

It is schema free, in that you don't need to define 
your
field/properties/attributes ahead of time; you can just toss it a JSON
document and it'll try to autodetect data types and index your doc. That
said, the power of full text search comes from the 
Elastic-Model ( D/DR/DRTECH/Elastic-Model-0.52.tar.gz, DRTECH, 2015; MetaCPAN )
Elastic-Model/lib/Elastic/Model/Role/Doc.pm ( view source; MetaCPAN )
$self);
    my %original = %{ $self->uid->from_store ? $self->_source : {} };
    my $json     = $self->model->json;
    my %old;

    my ( $o, $c, $o_str, $c_str );
    my $meta  = Class::MOP::class_
ete $original{$key}, $current->{$key} );
        ( $o_str, $c_str )
            = map { ref $_ ? $json->encode($_) : $_ } ( $o, $c );

        if ( $o_str ne $c_str ) {
            $old{$key} = $meta-

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