Group
Extension

Matches 35359

Data-Interactive-Inspect ( T/TL/TLINDEN/Data-Interactive-Inspect-0.07.tar.gz, TLINDEN, 2017; MetaCPAN )
Data-Interactive-Inspect/sample/bin/inspect.pl ( view source; MetaCPAN )
hat.  That  way you  can
# interactively browse XML or YAML files. Supported suffixes are: xml,
# json, csv, yml, ini, conf.

# If the data structure evaulates, you'll be dropped into an interactive
#
  elsif ($arg =~ /\.json$/i) {
    eval { require JSON; };
    die "Sorry, JSON is not installed, JSON not supported!\n" if($@);
    my $json = JSON->new->utf8();
    $code = $json->decode(slurp($arg)
Plack-Middleware-WOVN ( M/MA/MASIUCHI/Plack-Middleware-WOVN-0.09.tar.gz, MASIUCHI, 2017; MetaCPAN )
Plack-Middleware-WOVN/lib/Plack/Middleware/WOVN/Store.pm ( view source; MetaCPAN )
leware::WOVN::Store;
use strict;
use warnings;
use utf8;
use parent 'Class::Accessor::Fast';

use JSON;
use LWP::UserAgent;

use Plack::Middleware::WOVN::Lang;

__PACKAGE__->mk_accessors(qw/ config_lo
en&url=$url");

    my $values = {};
    if ( $res->is_success ) {
        $values = eval { JSON::decode_json( $res->content ) } || {};
    }

    $values;
}

1;

__END__

=head1 NAME

Plack::Middlewa
Net-Async-Matrix ( P/PE/PEVANS/Net-Async-Matrix-0.19.tar.gz, PEVANS, 2017; MetaCPAN )
Net-Async-Matrix/lib/Net/Async/Matrix.pm ( view source; MetaCPAN )
ON = eval $VERSION;

use Carp;

use Future;
use Future::Utils qw( repeat );
use JSON::MaybeXS qw( encode_json decode_json );

use Data::Dump 'pp';
use File::stat;
use List::Util 1.29 qw( pairmap );
us
 shift;
   return $v if !ref $v or blessed $v;
   return $v if ref $v ne "HASH";
   return encode_json( $v );
}

sub _uri_for_path
{
   my $self = shift;
   my ( $path, %params ) = @_;

   $path = "/$
};

   # Some parameter values can be JSON-encoded objects
   $uri->query_form( pairmap { $a => _maybe_encode $b } %params );

   return $uri;
}

sub _do_GET_json
{
   my $self = shift;
   my ( $path,
Net-Async-Matrix ( P/PE/PEVANS/Net-Async-Matrix-0.19.tar.gz, PEVANS, 2017; MetaCPAN )
Net-Async-Matrix/lib/Net/Async/Matrix/Room.pm ( view source; MetaCPAN )
 undef;
}

sub _do_GET_json
{
   my $self = shift;
   my ( $path, @args ) = @_;

   $self->{matrix}->_do_GET_json( "/rooms/$self->{room_id}" . $path, @args );
}

sub _do_PUT_json
{
   my $self = shift
>{matrix}->_do_PUT_json( "/rooms/$self->{room_id}" . $path, $content );
}

sub _do_POST_json
{
   my $self = shift;
   my ( $path, $content ) = @_;

   $self->{matrix}->_do_POST_json( "/rooms/$self->{
ew room name.

=cut

sub set_name
{
   my $self = shift;
   my ( $name ) = @_;

   $self->_do_PUT_json( "/state/m.room.name", { name => $name } )
      ->then_done();
}

=head2 aliases

   @aliases = 
Stash-REST ( R/RE/RENTOCRON/Stash-REST-0.11.tar.gz, RENTOCRON, 2017; MetaCPAN )
Stash-REST/lib/Stash/REST.pm ( view source; MetaCPAN )
sts into stash. Then, Extends with Class::Trigger!

=head1 SYNOPSIS

    use Stash::REST;
    use JSON;

    $obj = Stash::REST->new(
        do_request => sub {
            my $req = shift;

        
       },
        decode_response => sub {
            my $res = shift;
            return decode_json($res->content);
        }
    );

    # you can write/read stash anytime
    $obj->stash('foo') #
u can use this to modify the default HTTP::Request::Common header for $data

    # POST body with JSON:
    $obj->rest_post(
        '/post-with-params?api_key=1',
        stash   => 'testparams',
   
WebService-PivotalTracker-Simple ( T/TS/TSUCCHI/WebService-PivotalTracker-Simple-0.01.tar.gz, TSUCCHI, 2017; MetaCPAN )
WebService-PivotalTracker-Simple/lib/WebService/PivotalTracker/Simple.pm ( view source; MetaCPAN )
se 5.008005;
use Mouse;

our $VERSION = "0.01";

use Furl;
use URI;
use Carp ();
use JSON qw(decode_json encode_json);

my $api_base_uri = 'https://www.pivotaltracker.com/services/v5/';

has 'token' =
 $self->timeout );
    },
);

no Mouse;

sub _request {
    my ($self, $method, $end_point, $data_json, @additional_header) = @_;

    my $ua = $self->ua;
    my $uri = $self->api_base_uri . $end_poin
= Furl::Request->new($method, $uri, ['X-TrackerToken' => $self->token, @additional_header], $data_json);
    my $res = $ua->request($req);
    unless ( $res->is_success ) {
        Carp::croak $res->s
Bio-WebService-LANL-SequenceLocator ( T/TS/TSIBLEY/Bio-WebService-LANL-SequenceLocator-20170324.tar.gz, TSIBLEY, 2017; MetaCPAN )
Bio-WebService-LANL-SequenceLocator/lib/Bio/WebService/LANL/SequenceLocator.pm ( view source; MetaCPAN )
.hiv.lanl.gov/content/sequence/LOCATE/locate.html>
web tool and is also used to power
L<a simple, JSON-based web API|https://indra.mullins.microbiol.washington.edu/locate-sequence/>
for the same tool 
tself.

=head1 EXAMPLE RESULTS

    # Using @sequences from the SYNOPSIS above
    use JSON;
    print encode_json(\@sequences);
    
    __END__
    [
       {
          "query" : "sequence_1",
     
Bio-WebService-LANL-SequenceLocator ( T/TS/TSIBLEY/Bio-WebService-LANL-SequenceLocator-20170324.tar.gz, TSIBLEY, 2017; MetaCPAN )
Bio-WebService-LANL-SequenceLocator/lib/Bio/WebService/LANL/SequenceLocator/Server.pm ( view source; MetaCPAN )
rictures 1;
use utf8;
use 5.018;

=head1 NAME

Bio::WebService::LANL::SequenceLocator::Server - A JSON web API for LANL's HIV sequence locator

=head1 SYNOPSIS

After installation:

    plackup `perld
 managed service:

    examples/service start

=head1 DESCRIPTION

This server powers
L<a simple, JSON-based web API|https://indra.mullins.microbiol.washington.edu/locate-sequence/>
for the L<LANL's H
Simple;

use Bio::WebService::LANL::SequenceLocator;
use File::Share qw< dist_file >;
use JSON qw< encode_json >;
use Text::CSV;
use Plack::App::File;
use Path::Tiny;
use IO::String;

has contact => (
Email-MIME-Kit-Bulk ( Y/YA/YANICK/Email-MIME-Kit-Bulk-0.0.3.tar.gz, YANICK, 2017; MetaCPAN )
Email-MIME-Kit-Bulk/lib/Email/MIME/Kit/Bulk/Command.pm ( view source; MetaCPAN )
s;

use MooseX::App::Simple;

use Email::MIME::Kit::Bulk;
use Email::MIME::Kit::Bulk::Target;
use JSON;
use MooseX::Types::Path::Tiny qw/ Path /;
use PerlX::Maybe;

option kit => (
    is       => 'ro
  => 'ro',
    isa     => Path,
    lazy    => 1,
    default => sub { shift->kit->child('targets.json') },
);

sub BUILD {
    my $self = shift;

    die 'Kit directory must have a manifest'
        
rep {
                   my $f = $_->basename;
                   $f =~ /^manifest\./ && $f =~ /\.json$/
               } $self->kit->children;

    die 'Cannot find target specification (' . $self->_
Net-Moip-V2 ( C/CA/CAFEGRATZ/Net-Moip-V2-0.06.tar.gz, CAFEGRATZ, 2017; MetaCPAN )
Net-Moip-V2/lib/Net/Moip/V2/Endpoint.pm ( view source; MetaCPAN )
et::Moip::V2::Endpoint;

use IO::Socket::SSL;
use MIME::Base64;
use Furl;
use JSON::MaybeXS ();

use Moo;

my $JSON = JSON::MaybeXS->new->utf8;

has 'path', is => 'ro', required => 1;

has 'api_url', 
on/json',
        'Authorization' => $self->_authorization_string
    ]);
}

sub post {
    my ($self, $data) = @_;

    $self->ua->post($self->url, [

        'Content-Type'   => 'application/json',
        'Authorization' => $self->_authorization_string

    ], $JSON->encode($data) );
}

sub oauth_get {
    my $self = shift;
    local $self->{is_oauth} = 1;
    $self->get(@_);
}

sub oauth_post 
Net-Moip-V2 ( C/CA/CAFEGRATZ/Net-Moip-V2-0.06.tar.gz, CAFEGRATZ, 2017; MetaCPAN )
Net-Moip-V2/lib/Net/Moip/V2.pm ( view source; MetaCPAN )
::Socket::SSL;
use MIME::Base64;
use Furl;
use JSON::MaybeXS ();
use Moo;
use URI;

use Net::Moip::V2::Endpoint;

our $VERSION = "0.06";

my $JSON = JSON::MaybeXS->new->utf8;

has 'ua', is => 'ro', de
> 'no-cache'
    ], $body);

    return { error => $res->status_line } if $res->code >= 500;
    $JSON->decode($res->content);
}




sub endpoint {
    my ($self, $path, $params) = @_;
    die "Syntax
  my $endpoint = shift;
    $self->endpoint($endpoint)->post(@_);
}


sub decode_json {
    my $self = shift;
    $JSON->decode($_[0]);
}




1;
__END__

=encoding utf-8

=head1 NAME

Net::Moip::V2 - 
App-Environ ( I/IP/IPH/App-Environ-0.22.tar.gz, IPH, 2017; MetaCPAN )
App-Environ/lib/App/Environ/Config.pm ( view source; MetaCPAN )
 use App::Environ;
  use App::Environ::Config;

  App::Environ::Config->register( qw( foo.yml bar.json ) );

  App::Environ->send_event('initialize');

  my $config = App::Environ::Config->instance;

Mojolicious-Command-replget ( S/SA/SADAMS/Mojolicious-Command-replget-0.01.tar.gz, SADAMS, 2017; MetaCPAN )
Mojolicious-Command-replget/lib/Mojolicious/Command/replget.pm ( view source; MetaCPAN )
 = '0.01';
$VERSION = eval $VERSION;

use Mojo::DOM;
use Mojo::IOLoop;
use Mojo::JSON qw(encode_json j);
use Mojo::JSON::Pointer;
use Mojo::UserAgent;
use Mojo::Util qw(decode encode getopt);
use Scal
$method, $url, \%headers, $content));
    my $res = $tx->result;

    # JSON Pointer
    next unless defined $selector;
    _json($buffer, $selector) and next if !length $selector || $selector =~ m!^/
ld_start_line, $_[0]->headers->to_string, "\n\n" }

sub _json {
  return unless my $data = j(shift);
  return unless defined($data = Mojo::JSON::Pointer->new($data)->get(shift));
  return _say($data) 
TOML-Dumper ( K/KA/KARUPA/TOML-Dumper-0.01.tar.gz, KARUPA, 2017; MetaCPAN )
TOML-Dumper/lib/TOML/Dumper/Context/Value.pm ( view source; MetaCPAN )
d/;

use TOML::Dumper::Name;
use TOML::Dumper::String;

our @BOOLEAN_CLASSES = qw/
    JSON::PP::Boolean
    JSON::XS::Boolean
/;

sub new {
    my ($class, %args) = @_;
    my ($name, $atom) = @args{
Email-MIME-Kit-Bulk ( Y/YA/YANICK/Email-MIME-Kit-Bulk-0.0.3.tar.gz, YANICK, 2017; MetaCPAN )
Email-MIME-Kit-Bulk/lib/Email/MIME/Kit/Bulk/Kit.pm ( view source; MetaCPAN )
::Kit::Bulk::ManifestReader::JSON;

use Moose;

extends 'Email::MIME::Kit';

has '+_manifest_reader_seed' => (
    default => '=Email::MIME::Kit::Bulk::ManifestReader::JSON',
);

has language => (
   
::Kit>. It defaults the C<manifest_reader>
attribute to L<Email::MIME::Kit::Bulk::ManifestReader::JSON>, and add a new 
C<language> attribute.

=head1 AUTHORS

=over 4

=item *

Jesse Luehrs    <doy@c
Email-MIME-Kit-Bulk ( Y/YA/YANICK/Email-MIME-Kit-Bulk-0.0.3.tar.gz, YANICK, 2017; MetaCPAN )
Email-MIME-Kit-Bulk/lib/Email/MIME/Kit/Bulk.pm ( view source; MetaCPAN )
           @parts,
            ],
        );
    }

    # XXX Email::MIME::Kit reads the manifest.json file as latin1
    # fix this in a better way once that is fixed?
    my $subject = $email->heade
>.json> to generate its associated email. If no language 
is given, the regular C<manifest.json> will be used instead.

If C<emk_bulk> is used, it'll look in the I<kit> directory for a
C<targets.json>
 file, which it'll use to create the email targets.
The format of the C<targets.json> file is a simple serialization of
the L<Email::MIME::Kit::Bulk::Target> constructor arguments:

    [
    {
      
MetaPOD ( K/KE/KENTNL/MetaPOD-v0.4.0.tar.gz, KENTNL, 2017; MetaCPAN )
MetaPOD/lib/MetaPOD/Exception/Decode/Data.pm ( view source; MetaCPAN )
decoder

=begin MetaPOD::JSON v1.1.0

{
    "namespace":"MetaPOD::Exception::Decode::Data",
    "interface":"class",
    "inherits":"MetaPOD::Exception"
}


=end MetaPOD::JSON

=head1 AUTHOR

Kent Fre
Document-eSign-Docusign ( G/GH/GHENRY/Document-eSign-Docusign-0.06.tar.gz, GHENRY, 2017; MetaCPAN )
Document-eSign-Docusign/lib/Document/eSign/Docusign.pm ( view source; MetaCPAN )
ginal API interface and
simply supplies an OO interface in perl to abstract the need to construct JSON and
web calls. It also uses all of the standard perl modules around these. Below is the
list of a
u with the examples for each of the calls. Each call returns a hashref
that contains the response JSON from Docusign. Errors are passed back with a single
reference $response->{error}. This will conta
MetaPOD ( K/KE/KENTNL/MetaPOD-v0.4.0.tar.gz, KENTNL, 2017; MetaCPAN )
MetaPOD/lib/MetaPOD/Role/Format.pm ( view source; MetaCPAN )
) = $role->_supported_versions;

=begin MetaPOD::JSON v1.1.0

{
    "namespace": "MetaPOD::Role::Format",
    "interface": "role"
}


=end MetaPOD::JSON

=head1 AUTHOR

Kent Fredric <kentnl@cpan.org>
MetaPOD ( K/KE/KENTNL/MetaPOD-v0.4.0.tar.gz, KENTNL, 2017; MetaCPAN )
MetaPOD/lib/MetaPOD/Exception.pm ( view source; MetaCPAN )

version v0.4.0

=begin MetaPOD::JSON v1.1.0

{
    "namespace":"MetaPOD::Exception",
    "interface":"class",
    "inherits":"Throwable::Error"
}


=end MetaPOD::JSON

=head1 AUTHOR

Kent Fredric <ke

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