Group
Extension

Matches 35358

App-MtAws ( V/VS/VSESPB/App-MtAws-1.120.tar.gz, VSESPB, 2014; MetaCPAN )
App-MtAws/lib/App/MtAws/Glacier/ListVaults.pm ( view source; MetaCPAN )
Glacier::ListVaults;

our $VERSION = '1.120';

use strict;
use warnings;
use utf8;

use Carp;
use JSON::XS 1.00;

use App::MtAws::Utils;
use App::MtAws::MetaData;


sub new
{
	my $class = shift;
	my $
elf, $class;
	$self;
}

sub _parse
{
	my ($self) = @_;
	return if $self->{data};
	$self->{data} = JSON::XS->new->allow_nonref->decode(${ delete $self->{rawdata} || confess });

}

sub get_list_vaults
LaTeXML-Plugin-LtxMojo ( D/DG/DGINEV/LaTeXML-Plugin-LtxMojo-0.4.tar.gz, DGINEV, 2014; MetaCPAN )
LaTeXML-Plugin-LtxMojo/lib/LaTeXML/Plugin/LtxMojo.pm ( view source; MetaCPAN )
package LaTeXML::Plugin::LtxMojo;
use Mojo::Base 'Mojolicious';
use Mojo::JSON;
use Mojo::IOLoop;
use Mojo::ByteStream qw(b);

use File::Basename 'dirname';
use File::Spec::Functions qw(catdir catfile
stom';
  #   }
  # }

$app->helper(convert_string => sub {
  my ($self) = @_;  
  my ($source,$is_jsonp);
  my $get_params = $self->req->url->query->params || [];
  my $post_params = $self->req->body_
Smarter fix??)
  while (my ($key,$value) = splice(@all_params,0,2)) {
    # JSONP ?
    if ($key eq 'jsonp') {
      $is_jsonp = $value;
      next;
    } elsif ($key =~ /^(?:tex|source)$/) {
      # 
Dezi-Admin ( K/KA/KARMAN/Dezi-Admin-0.006.tar.gz, KARMAN, 2014; MetaCPAN )
Dezi-Admin/lib/Dezi/Admin/Utils.pm ( view source; MetaCPAN )
;
use Carp;
use Data::Dump qw( dump );
use JSON;
use Sort::SQL;
use Search::QueryParser::SQL;

our $VERSION = '0.006';

sub json_mime_type {'application/json'}

sub params_to_sql {
    my $req = shift
olor )]
 );
        
=head1 DESCRIPTION

Dezi::Admin utility functions.

=head1 FUNCTIONS

=head2 json_mime_type

Returns appropriate MIME type string.

=head2 params_to_sql( I<plack_request>, I<table
Dezi-Admin ( K/KA/KARMAN/Dezi-Admin-0.006.tar.gz, KARMAN, 2014; MetaCPAN )
Dezi-Admin/lib/Dezi/Admin/API.pm ( view source; MetaCPAN )
dmin::API;
use strict;
use warnings;
use Carp;
use Plack::Builder;
use Data::Dump qw( dump );
use JSON;
use Dezi::Admin::API::Indexes;

our $VERSION = '0.006';

=head1 NAME

Dezi::Admin::API - Dezi ad
             };
                $resp->body( to_json($about) );
                $resp->status(200);
                $resp->content_type('application/json');
                return $resp->finalize();
 
Catalyst-ActionRole-JMS ( D/DA/DAKKAR/Catalyst-ActionRole-JMS-1.3.tar.gz, DAKKAR, 2014; MetaCPAN )
Catalyst-ActionRole-JMS/lib/Catalyst/Controller/JMS.pm ( view source; MetaCPAN )
stash_key => 'message',
    default => 'application/json',
    map => {
        'application/json'   => 'JSON',
        'text/x-json'        => 'JSON',
    },
);


around create_action => sub {
    my
  stash_key => 'message',
    default => 'application/json',
    map => {
      'application/json'   => 'JSON',
      'text/x-json'        => 'JSON',
    },
  );

See L<Catalyst::Action::Deserialize> 
Search-OpenSearch-Federated ( K/KA/KARMAN/Search-OpenSearch-Federated-0.007.tar.gz, KARMAN, 2014; MetaCPAN )
Search-OpenSearch-Federated/lib/Search/OpenSearch/Federated.pm ( view source; MetaCPAN )
SION} );

use Carp;
use Data::Dump qw( dump );
use Parallel::Iterator qw( iterate_as_array );
use JSON;
use LWP::UserAgent;
use Scalar::Util qw( blessed );
use Search::Tools::XML;
use Data::Transforme
       my $highest_score = 0;

        if ( $resp->content_type eq 'application/json' ) {
            my $r = decode_json( $resp->content );
            if ( $r->{results} ) {
                @resp_re
WWW-Google-AutoSuggest ( M/MU/MUDLER/WWW-Google-AutoSuggest-0.04.tar.gz, MUDLER, 2014; MetaCPAN )
WWW-Google-AutoSuggest/lib/WWW/Google/AutoSuggest.pm ( view source; MetaCPAN )
W::Google::AutoSuggest;
use WWW::Google::AutoSuggest::Obj -base;
use LWP::UserAgent;
use URI;
use JSON;
use Encode;

our $VERSION = '0.04';

=encoding utf-8

=head1 NAME

WWW::Google::AutoSuggest - Qu
ogle::AutoSuggest->new(domain=> "it" ,json=>1); #uses www.google.it instead of .com
  my $result = $AutoSuggest->search("perl");
  # $result now is a decoded JSON arrayref
  ###### or with the html ta
 returning it as decoded JSON for further inspection

=head1 ARGUMENTS

=over 4

=item json

  my $AutoSuggest=WWW::Google::AutoSuggest->new(json=>1);

or

  $AutoSuggest->json(1);

Explicitally enabl
Sque ( W/WW/WWOLF/Sque-0.010.tar.gz, WWOLF, 2014; MetaCPAN )
Sque/lib/Sque/Encoder.pm ( view source; MetaCPAN )
se 'Role';
use JSON;

# ABSTRACT: Any::Moose role for encoding Sque structures
#
# =attr encoder
#
# JSON encoder by default.
#
# =cut
has encoder => ( is => 'ro', default => sub { JSON->new->utf8 } )
Net-Reddit ( D/DA/DANNYT/Net-Reddit-1.2.tar.gz, DANNYT, 2014; MetaCPAN )
Net-Reddit/lib/Net/Reddit.pm ( view source; MetaCPAN )
::Dumper;
use Net::SSL (); # From Crypt-SSLeay
use LWP::UserAgent;
use HTTP::Cookies;
use JSON qw( decode_json ); 
use DeathByCaptcha::SocketClient;


$Net::HTTPS::SSL_SOCKET_CLASS = "Net::SSL"; # For
password;


my $post_data = {'user' => $username, 
				'passwd' => $password, 
				'api_type' => 'json',				
				'op' => 'login'
				};

$self->browser->default_header('Referer' => "http://www.reddit.
ult_header('Connection' => 'keep-alive');
$self->browser->default_header('Accept' => 'application/json, text/javascript, */*; q=0.01');
$self->browser->default_header('X-Requested-With' => 'XMLHttpReq
Gcode-Interpreter ( C/CO/COOFERCAT/Gcode-Interpreter-1.0.1.tar.gz, COOFERCAT, 2014; MetaCPAN )
Gcode-Interpreter/scripts/Gin.pm ( view source; MetaCPAN )
eter;
use JSON;

sub new {
  my ($class, $machine_type) = @_;

  my $self = {};
  bless $self, $class;

  $self->{INTERPRETER} = Gcode::Interpreter->new($machine_type);
  $self->{JSON} = JSON->new();
  #$self->{JSON}->pretty(1);

  $self->{WAYPOINT_LINES} = 0;
  $self->{META_FILE} = undef;

  return $self;
}

sub set_meta_file {
  my ($self, $file) = @_;
  $self->{META_FILE} = $file;
  return 1;
}
open meta file $tmp_meta to write to it: $!\n";
    return 0;
  }

  my $json = $self->{JSON}->encode($data);
  print META $json;
  foreach my $key (sort keys %$data) {
    print "$key: " . $data->{$k
Sque ( W/WW/WWOLF/Sque-0.010.tar.gz, WWOLF, 2014; MetaCPAN )
Sque/lib/Sque/Job.pm ( view source; MetaCPAN )
 'rw', isa => 'ArrayRef', default => sub {[]} );

coerce 'HashRef'
    => from 'Str'
    => via { JSON->new->utf8->decode($_) };

has payload => (
    is => 'rw',
    isa => 'HashRef',
    coerce => 1
l be coerced using JSON decoder.
This is read-only.

=head2 frame

Raw stomp frame representing the job.
This is read-only.

=head1 METHODS

=head2 encode

String representation(JSON) to be used on th
Search-OpenSearch-Engine-Lucy ( K/KA/KARMAN/Search-OpenSearch-Engine-Lucy-0.400.tar.gz, KARMAN, 2014; MetaCPAN )
Search-OpenSearch-Engine-Lucy/lib/Search/OpenSearch/Engine/Lucy.pm ( view source; MetaCPAN )
           => 1,                   # include results
    t           => 'XML',               # or JSON
    u           => 'http://yourdomain.foo/opensearch/',
    b           => 'AND',               #
Dezi-Admin ( K/KA/KARMAN/Dezi-Admin-0.006.tar.gz, KARMAN, 2014; MetaCPAN )
Dezi-Admin/lib/Dezi/Admin/API/Stats.pm ( view source; MetaCPAN )
p qw( dump );
use Plack::Util::Accessor qw(
    debug
    conn
    table_name
    searcher
);
use JSON;
use Plack::Middleware::REST::Util;
use Dezi::Admin::Utils;
use Dezi::Admin::API::Response;
use T
 undef;
    if ( !$method ) {
        $resp->status(404);
        $resp->body(
            encode_json(
                {   code    => 404,
                    success => 0,
                    error 
;
    }

    $resp->status(200) unless $resp->status;
    $resp->content_type(Dezi::Admin::Utils::json_mime_type)
        unless $resp->content_type;

    return $resp->finalize;
}

1;

__END__

=head
Dezi-Admin ( K/KA/KARMAN/Dezi-Admin-0.006.tar.gz, KARMAN, 2014; MetaCPAN )
Dezi-Admin/lib/Dezi/Admin/API/Indexes.pm ( view source; MetaCPAN )
Component );
use Data::Dump qw( dump );
use Plack::Util::Accessor qw(
    debug
    engine
);
use JSON;
use Plack::Middleware::REST::Util;
use Dezi::Admin::Utils;
use Dezi::Admin::API::Response;

our 
esponse;
    $resp->status(200) unless $resp->status;
    $resp->content_type(Dezi::Admin::Utils::json_mime_type)
        unless $resp->content_type;
    $resp->body($idx);
    return $resp->finalize;
esponse;
    $resp->status(200) unless $resp->status;
    $resp->content_type(Dezi::Admin::Utils::json_mime_type)
        unless $resp->content_type;
    $resp->body("$list");
    return $resp->finali
Dezi-Admin ( K/KA/KARMAN/Dezi-Admin-0.006.tar.gz, KARMAN, 2014; MetaCPAN )
Dezi-Admin/lib/Dezi/Admin/API/Response.pm ( view source; MetaCPAN )
erload
    '""'     => sub { $_[0]->stringify; },
    'bool'   => sub {1},
    fallback => 1;
use JSON;
use Plack::Util::Accessor qw(
    total
    success
    results
    metaData
);

sub new {
    m
s,
    };

    return bless $self, $class;
}

sub stringify {
    my $self = shift;
    return to_json( {%$self} );
}

1;

__END__

=head1 NAME

Dezi::Admin::API::Response - Dezi administration API re
total,
    results => $list,
 );
 print $resp;  # renders as JSON
        
=head1 DESCRIPTION

Dezi::Admin::API::Response represents a JSON response to an API call.

=head1 METHODS

=head2 new( I<args
DeathByCaptcha ( D/DA/DANNYT/DeathByCaptcha-0.01.tar.gz, DANNYT, 2014; MetaCPAN )
DeathByCaptcha/lib/DeathByCaptcha/SocketClient.pm ( view source; MetaCPAN )
:SocketClient;

use strict;
use warnings;
our $VERSION = '0.01';
use IO::Socket;
use JSON qw(encode_json decode_json);
use MIME::Base64 qw(encode_base64);

use DeathByCaptcha::Exception;
use base 'Dea
DeathByCaptcha::Client::API_VERSION,
                   "cmd" => $cmd};

    my $request = encode_json($cmdargs);
    #printf("%d SEND: %d %s\n", time, length($request), $request);
    $request .= +AP
\n", time, length($buff), $buff);
            my $response;
            eval { $response = decode_json($buff); };
            if (defined $response) {
                if (defined $response->{"error"})
DeathByCaptcha ( D/DA/DANNYT/DeathByCaptcha-0.01.tar.gz, DANNYT, 2014; MetaCPAN )
DeathByCaptcha/lib/DeathByCaptcha/HttpClient.pm ( view source; MetaCPAN )
JSON qw(decode_json);

use DeathByCaptcha::Exception;
use base 'DeathByCaptcha::Client';

use constant API_SERVER_URL => 'http://api.dbcapi.me/api';
use constant API_RESPONSE_TYPE => 'application/json
ccess forbidden, check your credentials"
        );
    }
    my $user;
    eval { $user = decode_json($response->content()); };
    return (defined $user and 0 < $user->{"user"}) ? $user : undef;
}

Status::RC_OK == $response->code) {
            my $captcha;
            eval { $captcha = decode_json($response->content); };
            if (defined $captcha and 0 < $captcha->{"captcha"}) {
       
WebService-Freebox ( V/VA/VADZ/WebService-Freebox-0.001.tar.gz, VADZ, 2014; MetaCPAN )
WebService-Freebox/lib/WebService/Freebox.pm ( view source; MetaCPAN )

use warnings;

package WebService::Freebox;

# ABSTRACT: Freebox API wrappers.


use Mouse;

use JSON;
use REST::Client;

our $VERSION = '0.001'; # VERSION

has app_id => ( is => 'ro', isa => 'Str', 
ttp://mafreebox.freebox.fr');
    $c->addHeader('Accept', 'application/json');
    $c->addHeader('Content-Type', 'application/json');

    return $c;
}

# Wrapper around REST::Client request() checkin
    die qq{$errmsg ("$request $url" failed with HTTP error $errcode).\n}
    }

    return decode_json $c->responseContent()
}

# Helper for making normal API requests, i.e. all except for the initial
Tiny-YAML ( I/IN/INGY/Tiny-YAML-0.0.9.tar.gz, INGY, 2014; MetaCPAN )
Tiny-YAML/lib/Tiny/YAML.pod ( view source; MetaCPAN )
vailable in JSON, with the additional limitation that only simple keys are
supported.

As a result, all possible Tiny YAML documents should be able to be transformed
into an equivalent JSON document, 
Chef-REST-Client ( B/BP/BPATEL/Chef-REST-Client-1.2.tar.gz, BPATEL, 2014; MetaCPAN )
Chef-REST-Client/lib/Chef/REST.pm ( view source; MetaCPAN )
ef
 push @INC, '/', @base;
};

use parent qw { Chef Chef::Header };
use LWP::UserAgent;
use Mojo::JSON;

sub new {
   my $class = shift;
   my $self  = $class->SUPER::new(@_);
   bless $self, $class;
 			  
	return $response;
}

sub post 
{
	my $self  = shift;
	my $param = {@_};
	my $mojo_json = new Mojo::JSON();
	my $response  = $self->add_headers( 
	                    $self->header(
		         
        'Path'    => $param->{'api_end_point'},
		                             'Content' => $mojo_json->encode($param->{'data'})
		                        )->hash
		                      )
		         

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