Group
Extension

Matches 35359

Lavoco-Web-App ( C/CA/CAGAO/Lavoco-Web-App-0.06.tar.gz, CAGAO, 2015; MetaCPAN )
Lavoco-Web-App/lib/Lavoco/Web/App.pm ( view source; MetaCPAN )
:Dumper;
use DateTime;
use Email::Stuffer;
use Encode;
use File::Slurp;
use FindBin qw($Bin);
use JSON;
use Log::AutoDump;
use Plack::Handler::FCGI;
use Plack::Request;
use Template;
use Term::ANSICol
se . '/templates';
}

sub _build_filename
{
    my $self = shift;

    return $self->base . '/app.json';
}

=head3 base

The base directory of the application, detected using L<FindBin>.

=head3 dev

<gt>base . '/templates'>.

=head3 filename

Filename for the config file, default is C<app.json> and only JSON is currently supported.

=head3 config

The config as a hash-reference.

=head2 Instance 
Lavoco-Web-Editor ( C/CA/CAGAO/Lavoco-Web-Editor-0.07.tar.gz, CAGAO, 2015; MetaCPAN )
Lavoco-Web-Editor/lib/Lavoco/Web/Editor.pm ( view source; MetaCPAN )
 DateTime;
use Digest::SHA1  qw(sha1_hex);
use Encode;
use File::Slurp;
use FindBin qw($Bin);
use JSON;
use Log::AutoDump;
use Plack::Handler::FCGI;
use Plack::Request;
use Template;
use Term::ANSICol
>_base . '/editor.json';
}

=head3 processes

Number of FastCGI process to spawn, 5 by default.

=head3 filename

Filename for the config file, default is C<editor.json> and only JSON is currently sup
filename, { binmode => ':utf8' } );

    my $config = undef;

    eval {
        $config = decode_json $string;
    };

    if ( $@ )
    {
        _print_red( "[ FAIL ]\n" );
        print "Config fi
MarpaX-Languages-ECMAScript-AST ( J/JD/JDDPAUSE/MarpaX-Languages-ECMAScript-AST-0.020.tar.gz, JDDPAUSE, 2015; MetaCPAN )
MarpaX-Languages-ECMAScript-AST/lib/MarpaX/Languages/ECMAScript/AST/Grammar/ECMAScript_262_5.pm ( view source; MetaCPAN )
ar::ECMAScript_262_5::Pattern;
use MarpaX::Languages::ECMAScript::AST::Grammar::ECMAScript_262_5::JSON;
use MarpaX::Languages::ECMAScript::AST::Grammar::ECMAScript_262_5::URI;
use MarpaX::Languages::E
    my $JSON = MarpaX::Languages::ECMAScript::AST::Grammar::ECMAScript_262_5::JSON->new();
    $self->{_JSON} = {
	grammar => $JSON,
	impl => MarpaX::Languages::ECMAScript::AST::Impl->new($JSON->gramm
ar_option(), $JSON->recce_option())
    };

    my $URI = MarpaX::Languages::ECMAScript::AST::Grammar::ECMAScript_262_5::URI->new();
    $self->{_URI} = {
	grammar => $URI,
	impl => MarpaX::Languages:
Puncheur ( S/SO/SONGMU/Puncheur-v0.3.0.tar.gz, SONGMU, 2015; MetaCPAN )
Puncheur/lib/Puncheur/Plugin/HandleStatic.pm ( view source; MetaCPAN )
        my $app_name = $self->app_name;
                my $is_text = qr/\b(?:text|xml|javascript|json)\b/;
                state $cache = {};
                if ($cache->{$app_name}{$path_info}) {
  
MarpaX-Languages-ECMAScript-AST ( J/JD/JDDPAUSE/MarpaX-Languages-ECMAScript-AST-0.020.tar.gz, JDDPAUSE, 2015; MetaCPAN )
MarpaX-Languages-ECMAScript-AST/lib/MarpaX/Languages/ECMAScript/AST/Grammar.pm ( view source; MetaCPAN )

    my ($self) = @_;
    return $self->{_grammar}->pattern;
}


sub JSON {
    my ($self) = @_;
    return $self->{_grammar}->JSON;
}


sub URI {
    my ($self) = @_;
    return $self->{_grammar}->UR
gNumericLiteral grammar.

=head2 pattern($self)

Returns the pattern grammar.

=head2 JSON($self)

Returns the JSON grammar.

=head2 URI($self)

Returns the URI grammar.

=head2 spacesAny($self)

Retu
Dist-Zilla-App-Command-weaverconf ( E/ET/ETHER/Dist-Zilla-App-Command-weaverconf-0.05.tar.gz, ETHER, 2015; MetaCPAN )
Dist-Zilla-App-Command-weaverconf/lib/Dist/Zilla/App/Command/weaverconf.pm ( view source; MetaCPAN )
a::App::Command::weaverconf::VERSION = '0.05';
use Dist::Zilla::App -command;
use Moose 0.91;
use JSON::MaybeXS ();
use List::Util qw(first);
use MooseX::Types::Moose qw(Str CodeRef);
use MooseX::Type
ar
#pod output format. The following formats are currently available:
#pod
#pod =for :list
#pod * json
#pod the default
#pod * lisp
#pod a plist of lists of plists
#pod
#pod =cut

has formatters => (
> sub { Dist::Zilla::App::CommandHelper::weaverconf::SExpGen->new->visit($_[0]) },
        json => sub { JSON::MaybeXS->new(utf8 => 1, pretty => 1, canonical => 1)->encode($_[0]) },
    };
}

sub abst
WebService-Rakuten-API ( S/SU/SUENAGA/WebService-Rakuten-API-0.06.tar.gz, SUENAGA, 2015; MetaCPAN )
WebService-Rakuten-API/lib/WebService/Rakuten/API.pm ( view source; MetaCPAN )
Service::Rakuten::API;
use 5.008005;
use strict;
use warnings;
use LWP::UserAgent;
use Mouse;
use JSON;
use URI;
our $VERSION = "0.06";
use WebService::Rakuten::API::Provider::Travel;
use WebService::
  appid => __YOURAPI__
  );
   
  my $items = $rakuten->ichiba({keyword => '遊戯王',format => 'json'});

  print $items->{Items}->[0]->{Item}->{itemName};  

=head1 DESCRIPTION

WebService::Rakuten
SMS-Send-WebSMS ( A/AB/ABRAXXA/SMS-Send-WebSMS-0.001.tar.gz, ABRAXXA, 2015; MetaCPAN )
SMS-Send-WebSMS/lib/SMS/Send/WebSMS.pm ( view source; MetaCPAN )
SMS service

use Carp;
use HTTP::Tiny;
use URI::Escape qw( uri_escape );
use JSON::MaybeXS qw( decode_json encode_json JSON );

use base 'SMS::Send::Driver';


sub new {
    my $class = shift;
    my 
     # to ensure the response is JSON and not the XML default
            'accept' => 'application/json; charset=utf-8',
            'content-type' => 'application/json; charset=utf-8',
        },
   
nt => encode_json(\%message),
        }
    );

    # for example a timeout error
    die $response->{content}
        unless $response->{success};

    my $response_message = decode_json( $response->
HTML-FormHandlerX-Field-JavaScript ( C/CN/CNG/HTML-FormHandlerX-Field-JavaScript-0.004.tar.gz, CNG, 2015; MetaCPAN )
HTML-FormHandlerX-Field-JavaScript/lib/HTML/FormHandlerX/Field/JSONmulti.pm ( view source; MetaCPAN )
:Field::JSONmulti;
# ABSTRACT: a script tag which sets multiple vars using JSON 'data', encoded from list of perl data supplied via field for HTML::FormHandler.
$HTML::FormHandlerX::Field::JSONmulti::
VERSION = '0.004';

use Moose;
extends 'HTML::FormHandlerX::Field::JSON';
use namespace::autoclean;

use JavaScript::Minifier::XS qw();

sub wrap_data {
	my $self      = shift;
	my @data_args = @_;

	
le list bit seems a bit pointless right now, why not just create and array ref and assign the one json object?
	## The plan is to allow different data_key for each list element, but sensible implement
Geo-Cloudmade ( G/GD/GDM/Geo-Cloudmade-0.9.tar.gz, GDM, 2015; MetaCPAN )
Geo-Cloudmade/lib/Geo/Cloudmade.pm ( view source; MetaCPAN )
binmode $fh;
  print $fh $tile;

=cut

use strict;
use warnings;
use LWP::UserAgent;
use URI;
use JSON;
use Math::Trig;

use constant HOST => 'cloudmade.com';
use constant DEBUG => $ENV{GEO_CLOUDMADE_
vice("geocoding/v2/find.js", [%params], 'geocoding');

  return unless $content;
  my $ref = from_json($content, {utf8 => 1});
  my @objs;
  push @objs, bless $_, 'Geo::Cloudmade::Result' foreach (@{$
vice("geocoding/v2/find.js", [%params], 'geocoding');

  return unless $content;
  my $ref = from_json($content, {utf8 => 1});
  my @objs;
  push @objs, bless $_, 'Geo::Cloudmade::Result' foreach (@{$
WebService-Rakuten-API ( S/SU/SUENAGA/WebService-Rakuten-API-0.06.tar.gz, SUENAGA, 2015; MetaCPAN )
WebService-Rakuten-API/lib/WebService/Rakuten/API/Provider/Ichiba.pm ( view source; MetaCPAN )
l->query_form(applicationId => $context->appid,format=>$arg->{format},keyword =>$arg->{keyword});
 my $res = $context->furl->get($url);
 my $response = JSON::decode_json($res->decoded_content);
}

1;
CGI-Plus ( M/MI/MIKO/CGI-Plus-0.15.tar.gz, MIKO, 2015; MetaCPAN )
CGI-Plus/lib/CGI/Plus.pod ( view source; MetaCPAN )

 $cgi->set_header('myheader', 'whatever');

 # change content type
 $cgi->set_content_type('text/json');

 # output HTTP headers, including added cookies, the CSRF cookie,
 # and the new header
 prin
GgpkZ4; path=/
 # Date: Sun, 29 Jul 2012 04:08:06 GMT
 # Myheader: whatever
 # Content-Type: text/json; charset=ISO-8859-1

=head1 INSTALLATION

CGI::Plus can be installed with the usual routine:

 pe
CGI-Plus ( M/MI/MIKO/CGI-Plus-0.15.tar.gz, MIKO, 2015; MetaCPAN )
CGI-Plus/lib/CGI/Plus.pm ( view source; MetaCPAN )

 $cgi->set_header('myheader', 'whatever');

 # change content type
 $cgi->set_content_type('text/json');

 # output HTTP headers, including added cookies, the CSRF cookie,
 # and the new header
 prin
GgpkZ4; path=/
 # Date: Sun, 29 Jul 2012 04:08:06 GMT
 # Myheader: whatever
 # Content-Type: text/json; charset=ISO-8859-1

=head1 INSTALLATION

CGI::Plus can be installed with the usual routine:

 pe
Media-Type-Simple ( R/RR/RRWO/Media-Type-Simple-v0.31.0.tar.gz, RRWO, 2015; MetaCPAN )
Media-Type-Simple/lib/Media/Type/Simple.pm ( view source; MetaCPAN )
  }
  }

    _add_aliases(qw( application/mp4 video/mp4 ));
    _add_aliases(qw( application/json text/json ));
    _add_aliases(qw( application/cals-1840 image/cals-1840 image/cals image/x-cals appli
McBain ( I/ID/IDOPEREL/McBain-2.001000.tar.gz, IDOPEREL, 2015; MetaCPAN )
McBain/lib/McBain.pm ( view source; MetaCPAN )
 L<PSGI|McBain::WithPSGI> and L<Gearman::XS|McBain::WithGearmanXS> runners,
however, are both JSON-in JSON-out interfaces.

A C<McBain> API is built of one or more B<topics>, in a hierarchical structu
in::WithPSGI> - Turn an API into a Plack based, JSON-to-JSON
RESTful web application.

=item * L<McBain::WithGearmanXS> - Turn an API into a JSON-to-JSON
Gearman worker.

=item * L<McBain::WithWebSock
t> - Turn an API into a WebSocket server.

=item * L<McBain::WithZeroMQ> - Turn an API into a JSON-to-JSON ZeroMQ REP worker.

=back

The latter four completely change the way your API is used, and ye
MarpaX-Languages-ECMAScript-AST ( J/JD/JDDPAUSE/MarpaX-Languages-ECMAScript-AST-0.020.tar.gz, JDDPAUSE, 2015; MetaCPAN )
MarpaX-Languages-ECMAScript-AST/lib/MarpaX/Languages/ECMAScript/AST.pm ( view source; MetaCPAN )
----------------------------------------------------------------


sub JSON {
  my ($self) = @_;

  return $self->{_grammar}->JSON;
}

# ---------------------------------------------------------------
mar.

=head2 pattern($self)

Return the generic Pattern for this grammar.

=head2 JSON($self)

Return the generic JSON for this grammar.

=head2 URI($self)

Return the generic URI for this grammar.

=
McBain-WithPSGI ( I/ID/IDOPEREL/McBain-WithPSGI-2.001001.tar.gz, IDOPEREL, 2015; MetaCPAN )
McBain-WithPSGI/lib/McBain/WithPSGI.pm ( view source; MetaCPAN )
ngs;
use strict;

use Carp;
use JSON::MaybeXS qw/JSON/;
use Plack::Request;
use Plack::Component;

our $VERSION = "2.001001";
$VERSION = eval $VERSION;

my $json = JSON->new->utf8->allow_blessed->conv
created web service will be a JSON-in JSON-out service. Requests to your application
are expected to have a C<Content-Type> of C<application/json; charset=UTF-8>. The JSON body
of a request will be th
e formatted into JSON as
well.

Note that if an API method does not return a hash-ref, this runner module will automatically
turn it into a hash-ref to ensure that conversion into JSON will be possibl
Geo-Coder-TomTom ( G/GR/GRAY/Geo-Coder-TomTom-0.04.tar.gz, GRAY, 2015; MetaCPAN )
Geo-Coder-TomTom/lib/Geo/Coder/TomTom.pm ( view source; MetaCPAN )
package Geo::Coder::TomTom;

use strict;
use warnings;

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

our $VERSION = '0.04';
$VERSION = eval $VERSION;

sub new {
    my ($
=> 'json',
        %params,
    );

    my $res = $self->{response} = $self->ua->get($uri);
    return unless $res->is_success;

    # Change the content type of the response from 'application/json' s

    my $content = $res->decoded_content;
    return unless $content;

    my $data = eval { from_json($content) };
    return unless $data;

    # Result is a list only if there is more than one item
WebService-Rakuten-API ( S/SU/SUENAGA/WebService-Rakuten-API-0.06.tar.gz, SUENAGA, 2015; MetaCPAN )
WebService-Rakuten-API/lib/WebService/Rakuten/API/Provider/Travel.pm ( view source; MetaCPAN )
;
  my $url = URI->new(BASEHOTELURL);
  $url->query_form(applicationId=> $context->appid,format=>'json',largeClassCode => $arg->{largeClassCode},middleClassCode=>$arg->{middleClassCode},smallClassCode
App-git-hub ( I/IN/INGY/App-git-hub-0.1.5.tar.gz, INGY, 2015; MetaCPAN )
App-git-hub/share/lib/git-hub.d/json.pl ( view source; MetaCPAN )
use strict;

my $JSON;
for ( qw/JSON::MaybeXS JSON JSON::PP/ ) {
  last if $JSON = eval "use $_; '$_'";
}

$JSON or die <<'...';

ERROR: No JSON Perl modules are installed.

This Perl program is being
b' command. It requires
one of the 'JSON::MaybeXS', 'JSON' or 'JSON::PP' Perl modules, but it seems
that you have none of these installed.

Please install the 'JSON::MaybeXS' module from CPAN, and try
 again.

...

{
  my $data = decode_json(do {local $/; <>});
  die "Unknown JSON result" unless
    ref($data) =~ /^(HASH|ARRAY)$/;
  walk($data, '');
};

sub walk {
  my ($node, $path) = @_;
  if (re

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